GET api/v1/auth/permissions/{applicationCode}
Check permissions of token User in an Application
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
applicationCode |
Application Code e.g. GLO_00002 |
string |
Required |
Body Parameters
None.
Response Information
Response Codes
- OK (200)
- BadRequest (400)
- Unauthorized (401)
- InternalServerError (500)
Resource Description
Permission Model Object
PermissionsModelName | Description | Type | Additional information |
---|---|---|---|
applicationCode |
Application Code |
string |
None. |
applicationDescription |
Application Description |
string |
None. |
canDelete |
Defines if user have DELETE permission |
boolean |
None. |
canInsert |
Defines if user have INSERT permission |
boolean |
None. |
canList |
Defines if user have LIST permission |
boolean |
None. |
canUpdate |
Defines if user have UPDATE permission |
boolean |
None. |
companyId |
User's Company |
integer |
None. |
userCode |
User Code |
string |
None. |
userId |
User Id |
integer |
None. |
userName |
User Name |
string |
None. |
specialPermissions |
Special Permissions Items |
Dictionary of string [key] and boolean [value] |
None. |
Response Formats
application/json, text/json
Sample:
{ "applicationCode": "sample string 1", "applicationDescription": "sample string 2", "canDelete": true, "canInsert": true, "canList": true, "canUpdate": true, "companyId": 7, "userCode": "sample string 8", "userId": 9, "userName": "sample string 10", "specialPermissions": { "sample string 1": true, "sample string 3": true } }
application/xml, text/xml
Sample:
<PermissionsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AuthenticationServer.Models"> <ApplicationCode>sample string 1</ApplicationCode> <ApplicationDescription>sample string 2</ApplicationDescription> <CanDelete>true</CanDelete> <CanInsert>true</CanInsert> <CanList>true</CanList> <CanUpdate>true</CanUpdate> <CompanyId>7</CompanyId> <SpecialPermissions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringboolean> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value>true</d2p1:Value> </d2p1:KeyValueOfstringboolean> <d2p1:KeyValueOfstringboolean> <d2p1:Key>sample string 3</d2p1:Key> <d2p1:Value>true</d2p1:Value> </d2p1:KeyValueOfstringboolean> </SpecialPermissions> <UserCode>sample string 8</UserCode> <UserId>9</UserId> <UserName>sample string 10</UserName> </PermissionsModel>