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": "3dbcd455-1611-40c0-b7d6-96f166dafca6",
"customerID": "1598060b-2426-4605-9ad1-63e960cdebb3",
"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": "c7adbeaf-87be-416e-a59d-e522fbbec0ee",
"privilegeGroupId": "9e8ee747-d73b-4590-81d1-ba6b3b963803",
"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>1598060b-2426-4605-9ad1-63e960cdebb3</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>c7adbeaf-87be-416e-a59d-e522fbbec0ee</d2p1:ID>
<d2p1:Permission>2</d2p1:Permission>
<d2p1:PrivilegeGroupId>9e8ee747-d73b-4590-81d1-ba6b3b963803</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>c7adbeaf-87be-416e-a59d-e522fbbec0ee</d2p1:ID>
<d2p1:Permission>2</d2p1:Permission>
<d2p1:PrivilegeGroupId>9e8ee747-d73b-4590-81d1-ba6b3b963803</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>3dbcd455-1611-40c0-b7d6-96f166dafca6</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:
"74329891-f24c-43c8-b0e8-f5f0aacda2a4"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">74329891-f24c-43c8-b0e8-f5f0aacda2a4</guid>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK ���\�ٔ� 5 xl/workbook.xml � (� ����0��J}�(PCE�K��]pJIP��>~!�n�|����u��ڎ}to|�
ކ0� �nI�?̴��i�t/�R��*[�5� �$9����Ʒj�|����#l|Kt��4*����117{(}���֝MK~S"¶���AM�0 gѹ5O9s���;5Yv�Ӌ��̒��{� X�_PK ���\���� � [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
���\� P�' ' _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="Rddbd1479b06543b6" /></Relationships>PK ���\�0�^% � xl/worksheets/sheet1.xml � (� �Q�n� ��}�f��UI�IU�ݦ�3K��pN��m����-?��l����
>t5_�$g�Z�;�|��n�M5��
@,�]���k�q/Dh5XV8����US����#��G���AxE�������0zP]�`���*�xSu&�'��C_�5g��2���~�,��xI�KWs������_=�W�@o8?�9k�����ofM�gV��;��t��+Y���N>��(9k�@h?���R,4Y�H5�Ǚ�\��)J��4��8ﵑ����x"���ү��� |V����PK ���\ˁ� P xl/_rels/workbook.xml.rels � (� ��Kn�0@�b;���T6l��\`��IDbG�)p�.z�^�V�� u�
�����4�����\Ɓ����
� FV9�۶�S4Ol֫
�D��)��bC]��3�Au4b��D6u��#Ɣ��O���/�(��3����Ct��N�F��0?;Q�G�Rl��wȳD��ؑ�r���HQ`�aj!^
�^�|&S�X��
\����t�I�F�.=w��gj�da
M��^Hanj��/�_PK ���\Ѓ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 ���\q#� � xl/sharedStrings.xml � (� 5�AN�0�b��ko6@9�/��dc)����1���Vu�}��|�.���C���>��۫��"O�V�~H��bQӦ,#,�۳s�*(���d�{Am�ߝl;�$���u�?�����z�6-����A/��9�O���׳��>�����i����ӄ��i��ګ�PK- ���\�ٔ� 5 xl/workbook.xmlPK- ���\���� � � [Content_Types].xmlPK-
���\� P�' ' U _rels/.relsPK- ���\�0�^% � � xl/worksheets/sheet1.xmlPK- ���\ˁ� P 8 xl/_rels/workbook.xml.relsPK- ���\Ѓc'2 E
| xl/styles.xmlPK- ���\q#� � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
Sample:
PK ���\%���� 5 xl/workbook.xml � (� ����0��&�C�p�A�8q���{��6П�5��$���~;�d��4f 5j_���l�[�������7N��{��{�bcڷB��XG��^H��J���C�y�Ը�����!���!q��Vw6 �!�M�l�X�\aE8%�s�*�P�
�{I���=s�gi�1��wX ���PK ���\���� � [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
���\� m�' ' _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="R0fb2ae5e4c9d44bc" /></Relationships>PK ���\�0�^% � xl/worksheets/sheet1.xml � (� �Q�n� ��}�f��UI�IU�ݦ�3K��pN��m����-?��l����
>t5_�$g�Z�;�|��n�M5��
@,�]���k�q/Dh5XV8����US����#��G���AxE�������0zP]�`���*�xSu&�'��C_�5g��2���~�,��xI�KWs������_=�W�@o8?�9k�����ofM�gV��;��t��+Y���N>��(9k�@h?���R,4Y�H5�Ǚ�\��)J��4��8ﵑ����x"���ү��� |V����PK ���\�}�X� P xl/_rels/workbook.xml.rels � (� ��=n!F��賀��82v�&���0쮼p�-E��+9R��i\����h�|���ޖ�@�����bV9=�A�s2�m7�e�7�8���S�D5�"c�<��1.,2�2�Ku���
%�2����?Dg̤`��y�� �WNqHe �Er=X��=i��f�]뾥m�u��'wS��2C������Q�a-�)�F�Uf��s
yӥSj]߭jٯY�)W�������PK ���\Ѓ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 ���\q#� � xl/sharedStrings.xml � (� 5�AN�0�b��ko6@9�/��dc)����1���Vu�}��|�.���C���>��۫��"O�V�~H��bQӦ,#,�۳s�*(���d�{Am�ߝl;�$���u�?�����z�6-����A/��9�O���׳��>�����i����ӄ��i��ګ�PK- ���\%���� 5 xl/workbook.xmlPK- ���\���� � [Content_Types].xmlPK-
���\� m�' ' V _rels/.relsPK- ���\�0�^% � � xl/worksheets/sheet1.xmlPK- ���\�}�X� P 9 xl/_rels/workbook.xml.relsPK- ���\Ѓc'2 E
� xl/styles.xmlPK- ���\q#� � � xl/sharedStrings.xmlPK � �