This project has moved. For the latest updates, please go here.

Get Whether the Current User has Certain Permissions

Soap Action: ApplyItem or ApplyAML

To execute this action, you can use any of the following APIs:

  • Aras.IOM.IServerConnection.CallAction()

Since the result is returned in a simple Result tag and is not wrapped in an Item, you will not get a value if you try to use the Aras.IOM.Innovator.ApplyAML() or Aras.IOM.Item.Apply() APIs.

Input Structure:

<AML>
  <Item access_type="{Permission to check for (e.g. 'can_add', 'can_update', 'can_get', 'can_delete', etc.)}"
        action="getPermissions"
        id="{ID of the item to check}"
        type="{Type of the item to check}" />
</AML>

 

Notes:

  • The value returned is a simple 0 or 1 indicating if the user has the permission.
  • In order to check for the can_add permission, the ID and type must refer to an ItemType item.

Example (Input):

<AML>
  <Item type="Grid" id="904737F51C7644B8B64C167B08B36BB5" action="getPermissions" access_type="can_get"></Item>
</AML>

 

Example (Result):

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP-ENV:Body>
    <ApplyItemResponse>
      <Result>1</Result>
    </ApplyItemResponse>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Last edited Jan 1, 2012 at 10:41 PM by erdomke, version 2

Comments

No comments yet.