Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
This service is currently available to a limited set of clients and Microsoft employees only.
The access-policy-user service allows you to identify which roles and teams a user is on.
REST API
| HTTP Method | Endpoint | Description |
|---|---|---|
GET |
https://api.appnexus.com/access-policy-user?user_id=USER_ID | View a user's roles and teams. |
JSON fields
General
| Field | Type (Length) | Description |
|---|---|---|
groups |
object | An object containing arrays of roles and teams to which this user is assigned. |
landing_pages |
array | The list of Console pages this user will see upon logon. Only one page is supported at this time. |
user_id |
int | The ID of the user. Default: Auto-generated number. Required On: GET |
Groups
This object contains the role and teams to which a user is assigned.
| Field | Type (Length) | Description |
|---|---|---|
roles |
array | A list of role IDs for roles this user is assigned to. Only one role assignment is supported at this time. |
teams |
array | A list of team IDs for teams this user is assigned to. A user can be assigned to multiple teams. |
Example
View a user's teams and role
$ curl -b cookies 'https://api.appnexus.com/access-policy-user?user_id=10'
{
"user_id": 10,
"landing_pages": [
],
"groups": {
"roles": [
4
],
"teams": [
20,
22
]
}
}