...
where <sessionToken> is that returned by "Initiate Session", below. Note the authentication service manage the properties shown (principally the userId and password) while the repository services (below) manage other related user attributes.
Successful Response:
Code Block |
---|
HTTP/1.1 200 OK |
...
Code Block |
---|
POST http://repositoryservice.sagebase.org/repo/v1/usergroup {"name":"MyGroup", "creatableTypes":["type1","type2","type3"]} |
Note: The group's name must be unique in the system.
Note: Only an administrator may specify the "creatableTypes" argument. Other users must omit this field, or get an UnauthorizedException.
Retrieve Groups
Code Block |
---|
GET http://repositoryservice.sagebase.org/repo/v1/usergroup |
...
Code Block |
---|
PUT http://repositoryservice.sagebase.org/repo/v1/usergroup/{id} {"name":"MyGroup", "creatableTypes":"OurGroup"} ["type1","type2","type3"]} |
Note: The group's name must be unique in the system.
Note: Only an administrator may specify the "creatableTypes" argument. Other users must omit this field, or get an UnauthorizedException.
Get the users in the system
...