Description Usage Arguments Value REST query Note Examples
Returns the permission that the user specified in the URL has on the given group. Returns an empty object if the authenticated user is not a member of this group.
1 | ndex_user_show_group(ndexcon, userId, groupId)
|
ndexcon |
object of class NDExConnection linkndex_connect |
userId |
character; unique ID (UUID) of the user |
groupId |
character; unique ID (UUID) of the group |
List of permissions of that user or empty object
GET: ndex_config$api$user$group$get
Requires an authorized user! (ndex_connect with credentials)
Compatible to NDEx server version 2.0
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Establish a server connection with credentials
# ndexcon = ndex_connect('MyAccountName', 'MyPassword')
## Find user and get its id
# user = ndex_find_user_byName(ndexcon, 'SomeUserName')
# userId = user$externalId
## Find the user's groups and get one group id
# groups = ndex_user_list_groups(ndexcon, userId)
# groupId = groups[1,"externalId"]
## get users's permission in the group
# userPermissions = ndex_user_show_group(ndexcon, userId, groupId)
## $`uuuuuuuu-ssss-eeee-rrrr-123456789abc`
## [1] "MEMBER"
NULL
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.