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
NameDescriptionTypeAdditional 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": "4126d8c9-93d1-4c7e-b099-6e4ab5455a7d",
  "customerID": "784ac5b9-1084-47d4-8a10-ac2d51c8eab8",
  "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": "13588fd3-e3ca-4f27-81d6-4c8241713c2b",
      "privilegeGroupId": "4c093838-1a6c-4198-a73e-625f57e2a18b",
      "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>784ac5b9-1084-47d4-8a10-ac2d51c8eab8</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>13588fd3-e3ca-4f27-81d6-4c8241713c2b</d2p1:ID>
      <d2p1:Permission>2</d2p1:Permission>
      <d2p1:PrivilegeGroupId>4c093838-1a6c-4198-a73e-625f57e2a18b</d2p1:PrivilegeGroupId>
      <d2p1:Section>sample string 3</d2p1:Section>
    </d2p1:FieldPermission>
    <d2p1:FieldPermission>
      <d2p1:FieldName>sample string 1</d2p1:FieldName>
      <d2p1:ID>13588fd3-e3ca-4f27-81d6-4c8241713c2b</d2p1:ID>
      <d2p1:Permission>2</d2p1:Permission>
      <d2p1:PrivilegeGroupId>4c093838-1a6c-4198-a73e-625f57e2a18b</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>4126d8c9-93d1-4c7e-b099-6e4ab5455a7d</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 identifier

Response Formats

application/json, text/json

Sample:
"9f8eb9e0-248e-47e1-aa0e-f2eef04dbe51"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">9f8eb9e0-248e-47e1-aa0e-f2eef04dbe51</guid>

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Sample:
PKC/�Z���5xl/workbook.xml �(�����0��J}�(��(0�t����� 	JR��o�ԭ��|�||��{Zۑ��/\IeC��o$j�;��;a���{1+�j���[�	,K�s�CP�x�O�?,?8��KĠ��AZ�w���C��g���d���o�ϰ�bVĀƒ���ٹ�%M)q�������%͎g�gy1��7g���PKC/�Z����	�[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
C/�ZD��''_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="R858a252060de43b6" /></Relationships>PKC/�Z3d�I%�xl/worksheets/sheet1.xml �(��Q�n� ��}%mծ��T��j�M;lg�85��8M?@�i�.;���޳)w׋P��+�\R�o���Rɑ���<��t
�E����J�a�Th88����i�)]v�m�����Z�V��T0vrf�Wt�-�~�r�zY����ɽ �*y\J��2#�-L�W,���ה���,2V����+�:=����3؋ḡM�i��Φ�I��=��m�Tr���<�ֻb�Zow˭���\�]��&k�4�$��rdOQ�'d�Q<�youQ�[�'¿���&n	��@Y����/PKC/�Z?���Pxl/_rels/workbook.xml.rels �(���Kn�0@�b;q�8*�n�R.�ړ�Hl�6�����W�E��H]t�j4��'�|���o�D���hM�(��QV��o������'�DFHZ1��!F�HiP�2֡I���YƔ��:���G��rA}΀[&9\��h�nT�d�iF��W�a@�@��[�)z
�HT ;��~%4k����BK	��M-�˄���;�dx�86Ri�+���2����O�Ν�r�V-V/�ZU�*��j��/6_PKC/�ZЃc'2E
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��PKC/�Z�(���xl/sharedStrings.xml �(�5�An�0D�by�� ڒ�8�H=A{�`	�'jo_w����荿|�U=�s*4����eJt����b�4ŵ���<��:%�"��[���T6PM��(���mG�x$��u���H��$U��A�q���U���p�{��p��z��
�����-0�n���V��}[_�_PK-C/�Z���5xl/workbook.xmlPK-C/�Z����	�[Content_Types].xmlPK-
C/�ZD��''V_rels/.relsPK-C/�Z3d�I%��xl/worksheets/sheet1.xmlPK-C/�Z?���P9xl/_rels/workbook.xml.relsPK-C/�ZЃc'2E
xl/styles.xmlPK-C/�Z�(����xl/sharedStrings.xmlPK��

application/vnd.ms-excel

Sample:
PKC/�Z�y���5xl/workbook.xml �(�����0D�&�C�p�R8q�����4Ж�5��B	$޼��ξ1�W����2����1puG
�Ɍ��]k�B?K�Ӷ����oE�CE�4��F�N����Xn���눼V�B�yq<0&�fOI�r6����`
�oJ�~Ө(�%z�,8�&�1g6��𨢴�s�x�봹����a���PKC/�Z����	�[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
C/�Z���''_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="R7de26d52d4cf4b5d" /></Relationships>PKC/�Z3d�I%�xl/worksheets/sheet1.xml �(��Q�n� ��}%mծ��T��j�M;lg�85��8M?@�i�.;���޳)w׋P��+�\R�o���Rɑ���<��t
�E����J�a�Th88����i�)]v�m�����Z�V��T0vrf�Wt�-�~�r�zY����ɽ �*y\J��2#�-L�W,���ה���,2V����+�:=����3؋ḡM�i��Φ�I��=��m�Tr���<�ֻb�Zow˭���\�]��&k�4�$��rdOQ�'d�Q<�youQ�[�'¿���&n	��@Y����/PKC/�Z��t�Pxl/_rels/workbook.xml.rels �(���KN�0@�b͞�1�IQ�nذ-����I�Ķl��Xp$��U$H%l����I3�����<��i���b@�ioF�wp�����f��I�2��1$RV\�`�9�S��J��J��8�\��Ӡ�A�H9c��%.�d
���v����qF���Wi@�@�*��;�)%zuU�@M�g&,�r��Z#[ �jj)�&L�^��B�mW�Y��5LswU�AE4O9�K/����M�e-eå�vuV���PKC/�ZЃc'2E
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��PKC/�Z�(���xl/sharedStrings.xml �(�5�An�0D�by�� ڒ�8�H=A{�`	�'jo_w����荿|�U=�s*4����eJt����b�4ŵ���<��:%�"��[���T6PM��(���mG�x$��u���H��$U��A�q���U���p�{��p��z��
�����-0�n���V��}[_�_PK-C/�Z�y���5xl/workbook.xmlPK-C/�Z����	��[Content_Types].xmlPK-
C/�Z���''U_rels/.relsPK-C/�Z3d�I%��xl/worksheets/sheet1.xmlPK-C/�Z��t�P8xl/_rels/workbook.xml.relsPK-C/�ZЃc'2E
~xl/styles.xmlPK-C/�Z�(����xl/sharedStrings.xmlPK��