POST api/user/privileges
Save or create an Account Privilege for current tenant
Request Information
URI Parameters
None.
Body Parameters
Account privileges model to save
AccountPrivileges| Name | 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. |
Request Formats
application/json, text/json
Sample:
{
"privilegeID": "7807c91d-a85c-4857-8311-ce2b77f63e21",
"customerID": "3e52aa53-114b-45b3-99d4-c8911415537c",
"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": "44328d98-6c95-456b-a561-2c4b4e185da2",
"privilegeGroupId": "2170e003-b296-4ecf-b890-c7ce21d789b1",
"fieldName": "sample string 1",
"permission": 2,
"section": "sample string 3",
"restrictionUISetting": {
"$id": "6"
},
"restriction": "sample string 5",
"allowedPermissions": [
0,
0
]
},
{
"$ref": "5"
}
],
"accountsApplied": 1
}
application/xml, text/xml
Sample:
<AccountPrivileges xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.Tenancies.Accounts">
<AccountsApplied>1</AccountsApplied>
<CustomerID>3e52aa53-114b-45b3-99d4-c8911415537c</CustomerID>
<Fields xmlns:d2p1="http://schemas.datacontract.org/2004/07/EziManager.Models.Common">
<d2p1:FieldPermission>
<d2p1:AllowedPermissions xmlns:d4p1="http://schemas.datacontract.org/2004/07/EziManager.Common.Attributes">
<d4p1:FieldPermissionEnum>Full</d4p1:FieldPermissionEnum>
<d4p1:FieldPermissionEnum>Full</d4p1:FieldPermissionEnum>
</d2p1:AllowedPermissions>
<d2p1:FieldName>sample string 1</d2p1:FieldName>
<d2p1:ID>44328d98-6c95-456b-a561-2c4b4e185da2</d2p1:ID>
<d2p1:Permission>2</d2p1:Permission>
<d2p1:PrivilegeGroupId>2170e003-b296-4ecf-b890-c7ce21d789b1</d2p1:PrivilegeGroupId>
<d2p1:Restriction>sample string 5</d2p1:Restriction>
<d2p1:RestrictionUISetting />
<d2p1:Section>sample string 3</d2p1:Section>
</d2p1:FieldPermission>
<d2p1:FieldPermission>
<d2p1:AllowedPermissions xmlns:d4p1="http://schemas.datacontract.org/2004/07/EziManager.Common.Attributes">
<d4p1:FieldPermissionEnum>Full</d4p1:FieldPermissionEnum>
<d4p1:FieldPermissionEnum>Full</d4p1:FieldPermissionEnum>
</d2p1:AllowedPermissions>
<d2p1:FieldName>sample string 1</d2p1:FieldName>
<d2p1:ID>44328d98-6c95-456b-a561-2c4b4e185da2</d2p1:ID>
<d2p1:Permission>2</d2p1:Permission>
<d2p1:PrivilegeGroupId>2170e003-b296-4ecf-b890-c7ce21d789b1</d2p1:PrivilegeGroupId>
<d2p1:Restriction>sample string 5</d2p1:Restriction>
<d2p1:RestrictionUISetting />
<d2p1:Section>sample string 3</d2p1:Section>
</d2p1:FieldPermission>
</Fields>
<GroupName>sample string 1</GroupName>
<GroupPrivileges>
<ControllerPermission>
<Actions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringboolean>
<d4p1:Key>sample string 1</d4p1:Key>
<d4p1:Value>true</d4p1:Value>
</d4p1:KeyValueOfstringboolean>
<d4p1:KeyValueOfstringboolean>
<d4p1:Key>sample string 3</d4p1:Key>
<d4p1:Value>true</d4p1:Value>
</d4p1:KeyValueOfstringboolean>
</Actions>
<AllowDefault>true</AllowDefault>
<Name>sample string 1</Name>
<Verbs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringboolean>
<d4p1:Key>sample string 1</d4p1:Key>
<d4p1:Value>true</d4p1:Value>
</d4p1:KeyValueOfstringboolean>
<d4p1:KeyValueOfstringboolean>
<d4p1:Key>sample string 3</d4p1:Key>
<d4p1:Value>true</d4p1:Value>
</d4p1:KeyValueOfstringboolean>
</Verbs>
</ControllerPermission>
<ControllerPermission>
<Actions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringboolean>
<d4p1:Key>sample string 1</d4p1:Key>
<d4p1:Value>true</d4p1:Value>
</d4p1:KeyValueOfstringboolean>
<d4p1:KeyValueOfstringboolean>
<d4p1:Key>sample string 3</d4p1:Key>
<d4p1:Value>true</d4p1:Value>
</d4p1:KeyValueOfstringboolean>
</Actions>
<AllowDefault>true</AllowDefault>
<Name>sample string 1</Name>
<Verbs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringboolean>
<d4p1:Key>sample string 1</d4p1:Key>
<d4p1:Value>true</d4p1:Value>
</d4p1:KeyValueOfstringboolean>
<d4p1:KeyValueOfstringboolean>
<d4p1:Key>sample string 3</d4p1:Key>
<d4p1:Value>true</d4p1:Value>
</d4p1:KeyValueOfstringboolean>
</Verbs>
</ControllerPermission>
</GroupPrivileges>
<PrivilegeID>7807c91d-a85c-4857-8311-ce2b77f63e21</PrivilegeID>
<RouteScope xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</RouteScope>
</AccountPrivileges>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Account privileges identifier
globally unique identifierResponse Formats
application/json, text/json
Sample:
"5610f4d4-b0a7-497f-9694-c48d00ac277a"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">5610f4d4-b0a7-497f-9694-c48d00ac277a</guid>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK �1�\祡ַ 5 xl/workbook.xml � (� ����0��&�C�`��N\�z�^a�
�%m
>��o�vfg�6�=���G��� ���S�j����PO��X��$틚��5V�~+Ԟ�AS�=��h'��`���r�E�8��U�����67{H�"'c�;���!��bl�X�\a���ܚ�@l.��i�EIx��4�dQ;{�1��.�PK �1�\���� � [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
�1�\���' ' _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="Rc42c8286f9bd4e39" /></Relationships>PK �1�\F�z% � xl/worksheets/sheet1.xml � (� �Q�n� ���J�.mT%�&U�v�v��,q
j����? �4i� [~~��T��،�)25���:e�5L�(��Tٛ����qG[��~<r�Z�Z�
�hB�'����r�{���I��|�e{nq>H9�F+���hQtɂV*-����T`��ž��o��|W��_1�c|�b��Ր%,��$�W�:��4�7Z�Q]�*ROK�K7�*�
���.���as�gyQ����G`��<鏵���+M�</����l*��y\r�]�wn��ϱ7� ����˰%�"�6)��\�PK �1�\7���� P xl/_rels/workbook.xml.rels � (� ��Kn�0@�b;��8��l�aK��q&�ؖmJ9[=R�P�Jm����h~OO��|�Xo�扼���
� �Z�v�}��= �n�{�d�~�'qE���R���O�E;�q�1u=�R�d�4c��nɀ{&9\-��h�nT�l�yF� Ӌq'? �z
��<��4�T ���=
U�UV��(y��@���|�N����L��J��`GV��(*3H��Kp��K�ey�����r���y*�M�����PK �1�\Ѓc'2 E
xl/styles.xml � (� �S�j�0��&0���0�^�]v��:��d;��H��Kj�vG�Mz�zOHr�iB8v �F��WEG�?s�Oh�lff�uZМ���ށh�R���6�'��2��������ɳ�UŦ`<Қo���x���8��K�6BC ^�کĖ��B���n��f8����9� ����CUk��#��U�ub��WUB;��k���&�
AR>��� ��im��ΑF���YO��%�}� ��LJ\in�,���9oy}��y.�$��6��ųNJ�c��T��rĘ)փBR淶�E3ʟ�\��q��PK �1�\fR2� � xl/sharedStrings.xml � (� 5�An� E���HD�8�d)'h@`#�������.���z�]��"ްQ�8���Hk�����]�� ��RF�$��;"m�4ʙy�hMq��PW��Lu+�nOM�!��e�'c:]BF)bݑ�V��k��?7A���Gw4�MV=L��I
�`U��dL���N�w����+�PK- �1�\祡ַ 5 xl/workbook.xmlPK- �1�\���� � [Content_Types].xmlPK-
�1�\���' ' V _rels/.relsPK- �1�\F�z% � � xl/worksheets/sheet1.xmlPK- �1�\7���� P 9 xl/_rels/workbook.xml.relsPK- �1�\Ѓc'2 E
� xl/styles.xmlPK- �1�\fR2� � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
Sample:
PK �1�\�mr� 5 xl/workbook.xml � (� ����0D�&�C��H*)��x��}��m�-ik��-H�yۙ�};|��o���G���2��`̷5���ĝ�NC�ҽ�B�X�����&I��5^��ӕ�ˏ��1�aEiP�V�!|n�T8�EFc�;���!���l�X1���5�dq�]Iϔ�B���U`���K�g]{�q����PK �1�\���� � [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
�1�\�u�e' ' _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="Rd0339b8d39ec4bad" /></Relationships>PK �1�\F�z% � xl/worksheets/sheet1.xml � (� �Q�n� ���J�.mT%�&U�v�v��,q
j����? �4i� [~~��T��،�)25���:e�5L�(��Tٛ����qG[��~<r�Z�Z�
�hB�'����r�{���I��|�e{nq>H9�F+���hQtɂV*-����T`��ž��o��|W��_1�c|�b��Ր%,��$�W�:��4�7Z�Q]�*ROK�K7�*�
���.���as�gyQ����G`��<鏵���+M�</����l*��y\r�]�wn��ϱ7� ����˰%�"�6)��\�PK �1�\��s�� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞81�I��ݰa[z�'Q;�]�gc���V���X��j4��'�|�lvo�D^Ї�����V9=ھ�S4w
춛=N2��0�K iņ��5�A
8�P�m��gS�{�Hu�=RV�����Lr8/��3fT���iF� �W�a@�@��[�)z U��@�t{.�]��\�
��Z�� ï�w��4��)3\?0����� =���ӥs����U(yױ����+�5z��/PK �1�\Ѓc'2 E
xl/styles.xml � (� �S�j�0��&0���0�^�]v��:��d;��H��Kj�vG�Mz�zOHr�iB8v �F��WEG�?s�Oh�lff�uZМ���ށh�R���6�'��2��������ɳ�UŦ`<Қo���x���8��K�6BC ^�کĖ��B���n��f8����9� ����CUk��#��U�ub��WUB;��k���&�
AR>��� ��im��ΑF���YO��%�}� ��LJ\in�,���9oy}��y.�$��6��ųNJ�c��T��rĘ)փBR淶�E3ʟ�\��q��PK �1�\fR2� � xl/sharedStrings.xml � (� 5�An� E���HD�8�d)'h@`#�������.���z�]��"ްQ�8���Hk�����]�� ��RF�$��;"m�4ʙy�hMq��PW��Lu+�nOM�!��e�'c:]BF)bݑ�V��k��?7A���Gw4�MV=L��I
�`U��dL���N�w����+�PK- �1�\�mr� 5 xl/workbook.xmlPK- �1�\���� � � [Content_Types].xmlPK-
�1�\�u�e' ' U _rels/.relsPK- �1�\F�z% � � xl/worksheets/sheet1.xmlPK- �1�\��s�� P 8 xl/_rels/workbook.xml.relsPK- �1�\Ѓc'2 E
~ xl/styles.xmlPK- �1�\fR2� � � xl/sharedStrings.xmlPK � �