Version 4.0.25.2 (latest)
Get information about roles of a given user
Request
GET
/users/{user_id}/roles
Datatype
Description
Request
path
Expand HTTP Path definition...
user_id
Id of user
query
Expand HTTP Query definition...
fields
Requested fields.
direct_association_only
Get only roles associated directly with the user: exclude those only associated through groups.
Response
Datatype
Description
(array)
can
lock
Operations the current user is able to perform on this object
id
lock
Unique Id
name
Name of Role
permission_set
lock
(Read only) Permission set
Expand PermissionSet definition...
can
lock
Operations the current user is able to perform on this object
all_access
lock
built_in
lock
id
lock
Unique Id
name
Name of PermissionSet
permissions
url
lock
Link to get this item
permission_set_id
(Write-Only) Id of permission set
model_set
lock
(Read only) Model set
Expand ModelSet definition...
can
lock
Operations the current user is able to perform on this object
all_access
lock
built_in
lock
id
lock
Unique Id
models
name
Name of ModelSet
url
lock
Link to get this item
model_set_id
(Write-Only) Id of model set
url
lock
Link to get this item
users_url
lock
Link to get list of users with this role
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
Examples