Access Policy Group service
Note
This service is currently available to a limited set of clients and Microsoft employees only.
The access-policy-group service allows you to retrieve the elements that make up a role or a team. For a role this service returns a list of tokens that define user permissions. For teams, this service returns the IDs of the advertisers, insertion orders, publishers, sites, and placements that make up the team.
REST API
HTTP Method | Endpoint | Description |
---|---|---|
GET |
https://api.appnexus.com/access-policy-group | View all groups. |
JSON fields
General
Field | Type (Length) | Description |
---|---|---|
group_id |
int | The ID of the group. Default: Auto-generated number. |
group_type |
string | The type of group. Value will be either role or team . |
resources |
object | The ID and name of each resource in the group. |
Resources
Resource values can be retrieved by calling the access-resource service. For more information on retrieving resources, see View System Resources using the API.
Field | Type (Length) | Description |
---|---|---|
token |
string | For roles, a unique string identifier for the resource. |
entity_ids |
array of int | For teams, a list of resource IDs. |
Example
View all groups
$ curl -b cookies 'https://api.appnexus.com/access-policy-group'
{
"group_id": 10,
"group_type": "role",
"resources": [
{
"token": "hbapi:/report:get"
},
{
"token": "hbapi:/adjustment:PUT"
},
{
"token": "ui:/buyside/advertiser/select:GET"
},
{
"token": "ui:/buyside/advertiser:GET"
},
{
"token": "hbapi:/segment:DELETE"
},
{
"token": "hbapi:/segment:GET"
},
{
"token": "hbapi:/publisher:GET"
},
...
]
}