GET api/consumer/v1/users/{userId}/authorizations
User's authorizations
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
userId |
ID of the user |
integer |
Required |
Body Parameters
None
Response Information
Resource Description
List of authorizations
Collection of UserAuthorizationDtoName | Description | Type | Additional information |
---|---|---|---|
AuthorizationId |
ID of the authorization |
string |
None |
AuthorizationCode |
Code of the authorization |
string |
None |
CanView |
Permission |
boolean |
None |
CanDelete |
Permission |
boolean |
None |
CanCreate |
Permission |
boolean |
None |
CanModify |
Permission |
boolean |
None |
Response Formats
application/json, text/json
Sample:
[ { "AuthorizationId": "sample string 1", "AuthorizationCode": "sample string 2", "CanView": true, "CanDelete": true, "CanCreate": true, "CanModify": true }, { "AuthorizationId": "sample string 1", "AuthorizationCode": "sample string 2", "CanView": true, "CanDelete": true, "CanCreate": true, "CanModify": true } ]
application/xml, text/xml
Sample:
<ArrayOfUserAuthorizationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Oryx.Web.Api.Models"> <UserAuthorizationDto> <AuthorizationCode>sample string 2</AuthorizationCode> <AuthorizationId>sample string 1</AuthorizationId> <CanCreate>true</CanCreate> <CanDelete>true</CanDelete> <CanModify>true</CanModify> <CanView>true</CanView> </UserAuthorizationDto> <UserAuthorizationDto> <AuthorizationCode>sample string 2</AuthorizationCode> <AuthorizationId>sample string 1</AuthorizationId> <CanCreate>true</CanCreate> <CanDelete>true</CanDelete> <CanModify>true</CanModify> <CanView>true</CanView> </UserAuthorizationDto> </ArrayOfUserAuthorizationDto>