Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Update Group

(shallow properties, i.e. the group's name)

Code Block
PUT http://repositoryservice.sagebase.org/repo/v1/usergroup/{id}
{"name":"MyGroup", "creatableTypes":["type1","type2","type3"]}

...

Note: Only an administrator may specify the "creatableTypes" argument.   Other users must omit this field, or get an UnauthorizedException.

...

Note: It is not permissible to change the user's userId.
Note: The authentication services, above, manage the userId, password and other information complementary to these fields.

Add a user to the group

Code Block
POST http://repositoryservice.sagebase.org/repo/v1/usergroup/{gid}/users/{uid}

...

Give a group access to a resource, specifying the allowable access types

Note: A resource is specified by its type and an identifier, unique within a type.  Allowable types are returned by the DAOs in the 'models' package, e.g. org.sagebionetworks.repo.model.DatasetDAO.getType() returns the type for Datasets.

...

Code Block

POST http://repositoryservice.sagebase.org/repo/v1/usergroup/{gid}/resources/{rid}
{"accessType":["READ","CHANGE","SHARE"]}

Remove all access to a resource from a group

Code Block

DELETE http://repositoryservice.sagebase.org/repo/v1/usergroup/{gid}/resources/{rid}

Find out the access types a group has for a resource

Code Block

GET http://repositoryservice.sagebase.org/repo/v1/usergroup/{gid}/resources/{rtype}/rid}

Give a group access to a group, specifying the allowable access types

Code Block

POST http://repositoryservice.sagebase.org/repo/v1/usergroup/{gid}/group/{rid}
{"accessType":["READ","CHANGE","SHARE"]}

Remove all access to a

...

group from a group

Code Block
DELETE http://repositoryservice.sagebase.org/repo/v1/usergroup/{gid}/resourcesgroup/{rtype}/{rid}

Find out the access types a group has for a

...

group

Code Block
GET http://repositoryservice.sagebase.org/repo/v1/usergroup/{gid}/resources/{rtype}group/{rid}