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": "b95e33c5-d85b-40af-b62f-26504bdddca8", "customerID": "1c8d7d2a-b6b7-4ff7-ab6f-415d391ddf08", "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": "327be81d-b05c-4696-9acb-85db2ec3430c", "privilegeGroupId": "e1be976a-2641-496d-b521-0a7f50b9f6b1", "fieldName": "sample string 1", "permission": 2, "section": "sample string 3", "restrictionUISetting": { "$id": "6" }, "restriction": "sample string 5" }, { "$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>1c8d7d2a-b6b7-4ff7-ab6f-415d391ddf08</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>327be81d-b05c-4696-9acb-85db2ec3430c</d2p1:ID> <d2p1:Permission>2</d2p1:Permission> <d2p1:PrivilegeGroupId>e1be976a-2641-496d-b521-0a7f50b9f6b1</d2p1:PrivilegeGroupId> <d2p1:Restriction>sample string 5</d2p1:Restriction> <d2p1:RestrictionUISetting /> <d2p1:Section>sample string 3</d2p1:Section> </d2p1:FieldPermission> <d2p1:FieldPermission> <d2p1:FieldName>sample string 1</d2p1:FieldName> <d2p1:ID>327be81d-b05c-4696-9acb-85db2ec3430c</d2p1:ID> <d2p1:Permission>2</d2p1:Permission> <d2p1:PrivilegeGroupId>e1be976a-2641-496d-b521-0a7f50b9f6b1</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>b95e33c5-d85b-40af-b62f-26504bdddca8</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:
"4ec07eae-4f08-47c4-880b-4ab8a299fe6e"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">4ec07eae-4f08-47c4-880b-4ab8a299fe6e</guid>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK 0�D[[3�۷ 5 xl/workbook.xml � (� ����0D�&�C���"J���/e+ �%m ~��7o;��o'��jc:�Q�v�-h���1�x� ����N��i_�!9V��jώQta{��h���х�� �q-�W��R 5-�;B��S��f���d���o*�a�Ŭ����%�so Sb3�G��"�A�19��iX�� ���w�PK 0�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 0�D[�m�U' ' _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="R7d6c2b70821d41d3" /></Relationships>PK 0�D[�?�% � xl/worksheets/sheet1.xml � (� �Q�n� ��}��j�UI�IU�ݦ�3K��p�I��m����-?��l��������W�3p ����B�p৺��_Iᎎ��:��(5����b�CoU���v�i��d���r/<*D)�f$�����F���PYe���D��y�*���L�eF���W����ה���+��/Y�ճ:5 � �g0�qC����@�f֤�qf�=��i����X�7[YlwEq8�GΚ�ڏ���M�<������|.G��y(;���ղ��O��_�u��b �~~��PK 0�D[o�@�� P xl/_rels/workbook.xml.rels � (� ��Kn�0@�b;q N�M7l)p��8"�#۔r�.z�^��� u� �����4����ٽ�{E�{kjȒe��t5�=���n8�'��'���5��5�^i�O�&vȺQ����OR�d�|��+���g��u��-Q��٪�&���N^#`G�:5��<��,�T`���C!�*�),�y)2`�aj>\�^��L� �e�P��4���2Z:l_����;��3�� %P �*B����_l� PK 0�D[Ѓ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 0�D[�!��� � xl/sharedStrings.xml � (� 5�An� E���h�Ra������q�d�3��ۗ.�|����x}�E=q��h�o�Rnc�����>MЊh���Y�k�̢��xг��n-�+�H=��VA:nw��0�(u�G�N�B!�r�I�V���cǏ�$�ٝ�����ٛ��x�8^.�0ZI���m�~PK- 0�D[[3�۷ 5 xl/workbook.xmlPK- 0�D[���� � [Content_Types].xmlPK- 0�D[�m�U' ' V _rels/.relsPK- 0�D[�?�% � � xl/worksheets/sheet1.xmlPK- 0�D[o�@�� P 9 xl/_rels/workbook.xml.relsPK- 0�D[Ѓc'2 E � xl/styles.xmlPK- 0�D[�!��� � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
Sample:
PK 0�D[&�C�� 5 xl/workbook.xml � (� ����0��&�C����)��x����6ҟ�5���H�yۙ��v�l�����>z2�� �1���0H�<���v�z�c��I�j��o &��((�0� R��W�?��<�1H�����2�=bK���9d����b"���o�e�~�2\C�;9Fٹ� >c�k��;-�(�*h��=��;���w�PK 0�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 0�D[�QP�' ' _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="R1ef4978bb30342ce" /></Relationships>PK 0�D[�?�% � xl/worksheets/sheet1.xml � (� �Q�n� ��}��j�UI�IU�ݦ�3K��p�I��m����-?��l��������W�3p ����B�p৺��_Iᎎ��:��(5����b�CoU���v�i��d���r/<*D)�f$�����F���PYe���D��y�*���L�eF���W����ה���+��/Y�ճ:5 � �g0�qC����@�f֤�qf�=��i����X�7[YlwEq8�GΚ�ڏ���M�<������|.G��y(;���ղ��O��_�u��b �~~��PK 0�D[�C��� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞8�]Ӡ�ݰa[z��Q۲]�gc���V� �X��j4��'�|�lvo�D^0������V�~�C���ְ�n�8ɔ'�}$y��LJ��Ҩ�2Σ���,SN�@�TG9 ��Rаd�5���CtZ� �:�h�`���1�� À���R��P� �oa/j�k\i��q�; �fj1�'��^��B�Xw��{�^�����N!_z�,/Ժ������Xq.�E�^���PK 0�D[Ѓ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 0�D[�!��� � xl/sharedStrings.xml � (� 5�An� E���h�Ra������q�d�3��ۗ.�|����x}�E=q��h�o�Rnc�����>MЊh���Y�k�̢��xг��n-�+�H=��VA:nw��0�(u�G�N�B!�r�I�V���cǏ�$�ٝ�����ٛ��x�8^.�0ZI���m�~PK- 0�D[&�C�� 5 xl/workbook.xmlPK- 0�D[���� � � [Content_Types].xmlPK- 0�D[�QP�' ' U _rels/.relsPK- 0�D[�?�% � � xl/worksheets/sheet1.xmlPK- 0�D[�C��� P 8 xl/_rels/workbook.xml.relsPK- 0�D[Ѓc'2 E ~ xl/styles.xmlPK- 0�D[�!��� � � xl/sharedStrings.xmlPK � �