Skip to main content

Assign Roles

Until a Service Account has at least one Role applied, it may authenticate with the Enterprise API, but it has no authorization to view any resources.

caution

The Roles API is an idempotent upsert. Be cautious not to inadvertently overwrite and lose existing roles.

Tech Notes
  • Each Service Account can only be assigned one Role for each type
  • Each Role may have one or many resources assigned
  • Changes to roles take effect immediately

HTTP Request Body Examples

[
{
"roleName": "ACCOUNT_ADMIN",
"resources": {
"locationGroups": [],
"locations": [],
"applyToAccount": true
}
}
]

Rate Limiting

Service Account Roles are highly flexible, and may have a large scope of access. Rate limits will apply to the uniqueness of the Service Account itself, so please consider these variables when designing programmatic access to the Enterprise API endpoints. Visit Rate Limits for a comprehensive list of limits.