GetUserDetails
Retrieve users’ information.
Parameters
username: user for which information will be retrieved.
Details
This command can be used to retrieve user’s information and a summary of the permissions assigned to the user. When a user has multiple roles assigned, the permissions of all roles will be joined and returned.
Note: Token values will be returned only if the user being queried matches the user making the query. Additionally, only a portion of each token value is resturned.
Examples
Retrieve all user information for user “john”, using GetUserDetails command:
[ {
"GetUserDetails" : {
"username": "john",
}
} ]
# Response
[ {
"GetUserDetails": {
"roles": ["architect", "user"],
"email": "fdr@aperturedata.io",
"permissions": {
"objects": {
"create": True,
"read": True,
"update": False,
"delete": False,
},
"indexes": {
"create": True,
"read": True,
"update": True,
"delete": True,
},
"access_control": {
"create": False,
"read": False,
"update": False,
"delete": False,
},
},
"tokens": ["adbp_FE3fajEy",
"adbp_Z2nOUCAE"
]
}
}]