GET api/v1/auth/corp/permissions/{applicationCode}
Check permissions of token User in an Corp (External) Application
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
applicationCode |
Application Code e.g. EXT_00012 |
string |
Required |
Body Parameters
None.
Response Information
Response Codes
- OK (200)
- BadRequest (400)
- Unauthorized (401)
- InternalServerError (500)
Resource Description
Permission Model Object
PermissionsCorpModelName | 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. |
groupId |
User's Company |
integer |
None. |
GroupDescription |
Group description |
string |
None. |
userId |
User Id |
integer |
None. |
|
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, "groupId": 7, "GroupDescription": "sample string 8", "userId": 9, "email": "sample string 10", "specialPermissions": { "sample string 1": true, "sample string 3": true } }
application/xml, text/xml
Sample:
<PermissionsCorpModel 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> <Email>sample string 10</Email> <GroupDescription>sample string 8</GroupDescription> <GroupId>7</GroupId> <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> <UserId>9</UserId> </PermissionsCorpModel>