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
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. |
Request Formats
application/json, text/json
Sample:
{ "privilegeID": "2d333375-aec4-48c8-bc4a-a69dac6faaa1", "customerID": "9c7ae0fc-4836-4d0b-bc3b-32fca3f484f5", "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": "b97597c9-077a-4b61-96fa-c2bd656f4bd5", "privilegeGroupId": "3317e9e5-4854-44c3-a4e5-72843066b578", "fieldName": "sample string 1", "permission": 2, "section": "sample string 3" }, { "$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>9c7ae0fc-4836-4d0b-bc3b-32fca3f484f5</CustomerID> <Fields xmlns:d2p1="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Products"> <d2p1:FieldPermission> <d2p1:FieldName>sample string 1</d2p1:FieldName> <d2p1:ID>b97597c9-077a-4b61-96fa-c2bd656f4bd5</d2p1:ID> <d2p1:Permission>2</d2p1:Permission> <d2p1:PrivilegeGroupId>3317e9e5-4854-44c3-a4e5-72843066b578</d2p1:PrivilegeGroupId> <d2p1:Section>sample string 3</d2p1:Section> </d2p1:FieldPermission> <d2p1:FieldPermission> <d2p1:FieldName>sample string 1</d2p1:FieldName> <d2p1:ID>b97597c9-077a-4b61-96fa-c2bd656f4bd5</d2p1:ID> <d2p1:Permission>2</d2p1:Permission> <d2p1:PrivilegeGroupId>3317e9e5-4854-44c3-a4e5-72843066b578</d2p1:PrivilegeGroupId> <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>2d333375-aec4-48c8-bc4a-a69dac6faaa1</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:
"fc95f969-428f-44ca-87fa-078d7e47b7b4"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">fc95f969-428f-44ca-87fa-078d7e47b7b4</guid>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK S�[=$p�� 5 xl/workbook.xml � (� ����0D�&�C��b�DR8q����Ri�-ik��-H�yۙ�};b������G�箠]cΘ�j�';����: !J�b�m���ʷF��|��� AY�;5z���a��!4�CzXQ����@���=N~�����&ak�����/Eh,h(Y�{SЄ��8<��I&�p��4�<.6�l�]~PK S�[���� � [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 S�[��Es' ' _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="R49a8f7ff81d34edd" /></Relationships>PK S�[��P $ � xl/worksheets/sheet1.xml � (� �Q�n� ��}��]�UI�IU�ݦ�3K��p�I��m����-?��l���� ���� ��[���O����c]��/��pG_q�x� VQ�#�X��[b�{�]g8a3YpA�K��i3_���E��fvX��2��ek"{r�<tZq&�2#� ��+fi�O�KJ^ڊˌ����Y�����3�^�������@�f֤�qf�-��i���z[<�W�����.��5�Kyq)��yRAեǙ�\��)J�Pv�)�{�e)��7������%�g� >+��\�PK S�[#���� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞ة�㠦ݰa[z��3N�&vd�@�Ƃ#q�"A*�`��h~OO��|�Xoߦ��P��w �� F��vp]�d�4l7����D�9���b}J����4a,�L.w������h��_ �xX2�����C����9M��`���1�D �CG���R�P� �m`�V���Ǻ:H�T ��L-��H���;_�P�HJXk����T��@�s ��K�ey�V ̌Zk)[�/j��/6_PK S�[Ѓ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 S�[ �ӊ� � xl/sharedStrings.xml � (� 5�An� E��fOp#� �E�� = �C�d׃�����.���z�^^yO�8��Ё@ eJ���v�=��&���� .�2WѦ�#̵��Jq�1{>��%�l�׆�CxF�yQǮ;���e�ڴ vJ?;~�s$g��a8��<H}��:xٛ�eg�ɠ6ws�VUg�__�W�PK- S�[=$p�� 5 xl/workbook.xmlPK- S�[���� � [Content_Types].xmlPK- S�[��Es' ' V _rels/.relsPK- S�[��P $ � � xl/worksheets/sheet1.xmlPK- S�[#���� P 8 xl/_rels/workbook.xml.relsPK- S�[Ѓc'2 E | xl/styles.xmlPK- S�[ �ӊ� � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
Sample:
PK S�[��XX� 5 xl/workbook.xml � (� ����@�{��r�$䠢���_p��On����O ��ۙ��v�h}_[۳���].��5��:4Ӯ�^C�� ۶���6o�&�K��� AYC�r�W�?,r�Ib�ÊҠ/�����p�EN�Vw6�XC�7%�~�(f@c�+���ܞ?s�s5 �4��$i�YC��ä�~�_PK S�[���� � [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 S�[�I' ' _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="Re1389783ff2e489f" /></Relationships>PK S�[��P $ � xl/worksheets/sheet1.xml � (� �Q�n� ��}��]�UI�IU�ݦ�3K��p�I��m����-?��l���� ���� ��[���O����c]��/��pG_q�x� VQ�#�X��[b�{�]g8a3YpA�K��i3_���E��fvX��2��ek"{r�<tZq&�2#� ��+fi�O�KJ^ڊˌ����Y�����3�^�������@�f֤�qf�-��i���z[<�W�����.��5�Kyq)��yRAեǙ�\��)J�Pv�)�{�e)��7������%�g� >+��\�PK S�[g�/� P xl/_rels/workbook.xml.rels � (� ��An� E��f_c,l�*N6�t���, ms�.z�^�(�"u�MVh����ߟ_���<�7t~����@�(ۍ�o����f��I�x���I|b|C�3�^ 8K��M�h�fb�z�Hu�=�"�+�R�3����V�Q�Ϊӌ&���������14p�<�,�T /]���u.�J�\�}��� ���Nd���D��(ۇ��a�\�t���X[��(4�%���F����PK S�[Ѓ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 S�[ �ӊ� � xl/sharedStrings.xml � (� 5�An� E��fOp#� �E�� = �C�d׃�����.���z�^^yO�8��Ё@ eJ���v�=��&���� .�2WѦ�#̵��Jq�1{>��%�l�׆�CxF�yQǮ;���e�ڴ vJ?;~�s$g��a8��<H}��:xٛ�eg�ɠ6ws�VUg�__�W�PK- S�[��XX� 5 xl/workbook.xmlPK- S�[���� � � [Content_Types].xmlPK- S�[�I' ' U _rels/.relsPK- S�[��P $ � � xl/worksheets/sheet1.xmlPK- S�[g�/� P 7 xl/_rels/workbook.xml.relsPK- S�[Ѓc'2 E ~ xl/styles.xmlPK- S�[ �ӊ� � � xl/sharedStrings.xmlPK � �