Method GetAllRolesSimple
GetAllRolesSimple(String, Boolean)
Get all roles simple
Declaration
RoleSimpleResultContract GetAllRolesSimple(string connectionId, bool doNotFillAllowedActions)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | |
System.Boolean | doNotFillAllowedActions |
Returns
Type | Description |
---|---|
RoleSimpleResultContract |
Examples
POST http://YourServerName/InfoShare/Json/Common/GetAllRolesSimple
Example for get all roles simple{
"connectionId": "974a7244-335c-4b9a-9739-5e0e35eb438e",
"doNotFillAllowedActions": "false"
}
Response
{
"GetAllRolesSimpleResult": {
"RoleSimples": [
{
"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": 1062
}
}
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) |