GET api/user/privileges
Get account privileges for current tenant
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
List of account privileges models
Collection of AccountPrivilegesName | Description | Type | Additional information |
---|---|---|---|
PrivilegeID | globally unique identifier |
None. |
|
CustomerID | globally unique identifier |
None. |
|
GroupName | string |
None. |
|
GroupPrivileges | Collection of ControllerPermission |
None. |
|
RouteScope | Collection of string |
None. |
|
Fields | Collection of FieldPermission |
None. |
|
AccountsApplied |
Number of account that these privileges apply to. |
integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "$id": "1", "privilegeID": "7c6d33d3-ecd8-47c2-8d7e-1d92a71ccb0d", "customerID": "eb6624d2-0406-4e78-ac53-d39c7b38d11e", "groupName": "sample string 1", "groupPrivileges": [ { "$id": "2", "name": "sample string 1", "allowDefault": true, "verbs": { "$id": "3", "sample string 1": true, "sample string 3": true }, "actions": { "$id": "4", "sample string 1": true, "sample string 3": true } }, { "$ref": "2" } ], "routeScope": [ "sample string 1", "sample string 2" ], "fields": [ { "$id": "5", "id": "1e9f0d2f-486f-4ecc-b4a6-274a0b3a8d0b", "privilegeGroupId": "83f2abf7-7578-41d7-9f8a-e8848a122ed4", "fieldName": "sample string 1", "permission": 2, "section": "sample string 3", "restrictionUISetting": { "$id": "6" }, "restriction": "sample string 5" }, { "$ref": "5" } ], "accountsApplied": 1 }, { "$ref": "1" } ]
application/xml, text/xml
Sample:
<ArrayOfAccountPrivileges xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.Tenancies.Accounts"> <AccountPrivileges> <AccountsApplied>1</AccountsApplied> <CustomerID>eb6624d2-0406-4e78-ac53-d39c7b38d11e</CustomerID> <Fields xmlns:d3p1="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Products"> <d3p1:FieldPermission> <d3p1:FieldName>sample string 1</d3p1:FieldName> <d3p1:ID>1e9f0d2f-486f-4ecc-b4a6-274a0b3a8d0b</d3p1:ID> <d3p1:Permission>2</d3p1:Permission> <d3p1:PrivilegeGroupId>83f2abf7-7578-41d7-9f8a-e8848a122ed4</d3p1:PrivilegeGroupId> <d3p1:Restriction>sample string 5</d3p1:Restriction> <d3p1:RestrictionUISetting /> <d3p1:Section>sample string 3</d3p1:Section> </d3p1:FieldPermission> <d3p1:FieldPermission> <d3p1:FieldName>sample string 1</d3p1:FieldName> <d3p1:ID>1e9f0d2f-486f-4ecc-b4a6-274a0b3a8d0b</d3p1:ID> <d3p1:Permission>2</d3p1:Permission> <d3p1:PrivilegeGroupId>83f2abf7-7578-41d7-9f8a-e8848a122ed4</d3p1:PrivilegeGroupId> <d3p1:Restriction>sample string 5</d3p1:Restriction> <d3p1:RestrictionUISetting /> <d3p1:Section>sample string 3</d3p1:Section> </d3p1:FieldPermission> </Fields> <GroupName>sample string 1</GroupName> <GroupPrivileges> <ControllerPermission> <Actions xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringboolean> <d5p1:Key>sample string 1</d5p1:Key> <d5p1:Value>true</d5p1:Value> </d5p1:KeyValueOfstringboolean> <d5p1:KeyValueOfstringboolean> <d5p1:Key>sample string 3</d5p1:Key> <d5p1:Value>true</d5p1:Value> </d5p1:KeyValueOfstringboolean> </Actions> <AllowDefault>true</AllowDefault> <Name>sample string 1</Name> <Verbs xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringboolean> <d5p1:Key>sample string 1</d5p1:Key> <d5p1:Value>true</d5p1:Value> </d5p1:KeyValueOfstringboolean> <d5p1:KeyValueOfstringboolean> <d5p1:Key>sample string 3</d5p1:Key> <d5p1:Value>true</d5p1:Value> </d5p1:KeyValueOfstringboolean> </Verbs> </ControllerPermission> <ControllerPermission> <Actions xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringboolean> <d5p1:Key>sample string 1</d5p1:Key> <d5p1:Value>true</d5p1:Value> </d5p1:KeyValueOfstringboolean> <d5p1:KeyValueOfstringboolean> <d5p1:Key>sample string 3</d5p1:Key> <d5p1:Value>true</d5p1:Value> </d5p1:KeyValueOfstringboolean> </Actions> <AllowDefault>true</AllowDefault> <Name>sample string 1</Name> <Verbs xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringboolean> <d5p1:Key>sample string 1</d5p1:Key> <d5p1:Value>true</d5p1:Value> </d5p1:KeyValueOfstringboolean> <d5p1:KeyValueOfstringboolean> <d5p1:Key>sample string 3</d5p1:Key> <d5p1:Value>true</d5p1:Value> </d5p1:KeyValueOfstringboolean> </Verbs> </ControllerPermission> </GroupPrivileges> <PrivilegeID>7c6d33d3-ecd8-47c2-8d7e-1d92a71ccb0d</PrivilegeID> <RouteScope xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>sample string 1</d3p1:string> <d3p1:string>sample string 2</d3p1:string> </RouteScope> </AccountPrivileges> <AccountPrivileges> <AccountsApplied>1</AccountsApplied> <CustomerID>eb6624d2-0406-4e78-ac53-d39c7b38d11e</CustomerID> <Fields xmlns:d3p1="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Products"> <d3p1:FieldPermission> <d3p1:FieldName>sample string 1</d3p1:FieldName> <d3p1:ID>1e9f0d2f-486f-4ecc-b4a6-274a0b3a8d0b</d3p1:ID> <d3p1:Permission>2</d3p1:Permission> <d3p1:PrivilegeGroupId>83f2abf7-7578-41d7-9f8a-e8848a122ed4</d3p1:PrivilegeGroupId> <d3p1:Restriction>sample string 5</d3p1:Restriction> <d3p1:RestrictionUISetting /> <d3p1:Section>sample string 3</d3p1:Section> </d3p1:FieldPermission> <d3p1:FieldPermission> <d3p1:FieldName>sample string 1</d3p1:FieldName> <d3p1:ID>1e9f0d2f-486f-4ecc-b4a6-274a0b3a8d0b</d3p1:ID> <d3p1:Permission>2</d3p1:Permission> <d3p1:PrivilegeGroupId>83f2abf7-7578-41d7-9f8a-e8848a122ed4</d3p1:PrivilegeGroupId> <d3p1:Restriction>sample string 5</d3p1:Restriction> <d3p1:RestrictionUISetting /> <d3p1:Section>sample string 3</d3p1:Section> </d3p1:FieldPermission> </Fields> <GroupName>sample string 1</GroupName> <GroupPrivileges> <ControllerPermission> <Actions xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringboolean> <d5p1:Key>sample string 1</d5p1:Key> <d5p1:Value>true</d5p1:Value> </d5p1:KeyValueOfstringboolean> <d5p1:KeyValueOfstringboolean> <d5p1:Key>sample string 3</d5p1:Key> <d5p1:Value>true</d5p1:Value> </d5p1:KeyValueOfstringboolean> </Actions> <AllowDefault>true</AllowDefault> <Name>sample string 1</Name> <Verbs xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringboolean> <d5p1:Key>sample string 1</d5p1:Key> <d5p1:Value>true</d5p1:Value> </d5p1:KeyValueOfstringboolean> <d5p1:KeyValueOfstringboolean> <d5p1:Key>sample string 3</d5p1:Key> <d5p1:Value>true</d5p1:Value> </d5p1:KeyValueOfstringboolean> </Verbs> </ControllerPermission> <ControllerPermission> <Actions xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringboolean> <d5p1:Key>sample string 1</d5p1:Key> <d5p1:Value>true</d5p1:Value> </d5p1:KeyValueOfstringboolean> <d5p1:KeyValueOfstringboolean> <d5p1:Key>sample string 3</d5p1:Key> <d5p1:Value>true</d5p1:Value> </d5p1:KeyValueOfstringboolean> </Actions> <AllowDefault>true</AllowDefault> <Name>sample string 1</Name> <Verbs xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringboolean> <d5p1:Key>sample string 1</d5p1:Key> <d5p1:Value>true</d5p1:Value> </d5p1:KeyValueOfstringboolean> <d5p1:KeyValueOfstringboolean> <d5p1:Key>sample string 3</d5p1:Key> <d5p1:Value>true</d5p1:Value> </d5p1:KeyValueOfstringboolean> </Verbs> </ControllerPermission> </GroupPrivileges> <PrivilegeID>7c6d33d3-ecd8-47c2-8d7e-1d92a71ccb0d</PrivilegeID> <RouteScope xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>sample string 1</d3p1:string> <d3p1:string>sample string 2</d3p1:string> </RouteScope> </AccountPrivileges> </ArrayOfAccountPrivileges>
text/csv
Sample:
Sample not available.
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK /�D[�� 5 xl/workbook.xml � (� ����0��&�C���D��x��Эm�-ik��-%�x�3;��T��Cg̀>jԮ�5�O%!���;� t�qc�A�1��ZӿhO���J,��K�����+���,P��W�RTj�UK����E���b"���o����"*�����S��sg5N0����R�2���Y�w<�;{�Ud��|PK /�D[���� � [Content_Types].xml � (� ���J�0�_��*M�D��V�*��d� �d�k��<�H���V���= ��|�o��|����������+�����7l���e۶~=E�"�zlXO�@Ճ��C�3]HNR~���R��uU�<���������a��36��b7םQ �1Z�$�8z�R��3 tP��-c�� g����_M��Of���~O�s�T���� ����P<�D��e=1Z��a2�b ��%#H'�2}���e�B)��~j/F�t��PK /�D[V� ' ' _rels/.rels � (� <?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" Id="Rd83451efddb743d2" /></Relationships>PK /�D[T%�z 3 xl/worksheets/sheet1.xml � (� ���r�0F_�Ѿ�?$�2I��u�H��ab�G��<~&� ���߽`�O���;�k�&