Method GetRolesForOwnUser
GetRolesForOwnUser(String)
Get roles for own user
Declaration
RoleSimpleResultContract GetRolesForOwnUser(string connectionId)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId |
Returns
Type | Description |
---|---|
RoleSimpleResultContract |
Examples
POST http://YourServerName/InfoShare/Json/Common/GetRolesForOwnUser
Example for get roles for own user{
"connectionId": "974a7244-335c-4b9a-9739-5e0e35eb438e"
}
Response
{
"GetRolesForOwnUserResult": {
"Roles": [
{
"AllowedActions": [
"01002060-38a7-12d8-a902-0050bf427e8f",
"01003012-38a7-11d8-a902-0050bf427e8f",
"01002004-38a7-11d8-a902-0050bf427e8f",
"01002005-38a7-11d8-a902-0050bf427e8f",
"01002006-38a7-11d8-a902-0050bf427e8f",
....
"01003011-38a7-11d8-a902-0050bf427e8f",
"01002071-38a7-11d8-a902-0050bf427e8f"
],
"Id": "933ac3dc-0b4b-4ed0-a3eb-29923c0a281d",
"Name": "Admins"
}
],
"SessionCount": 72
}
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |