Inspect the API key creator and their effective team roles.
Use the Me API to inspect the user who created the authenticated API key, their organization, and their teams in that organization.
Read team roles
Each entry in data.attributes.teams includes a roles array of effective role identifiers. With team-specific roles enabled, these are the user's roles for that team. Otherwise, the array contains the legacy organization role.
For example, this synthetic team entry includes two roles:
{
"id": 42,
"name": "Marketing",
"is_default": false,
"roles": ["admin", "user"]
}The deprecated organization_role attribute remains for compatibility. Read attributes.teams[].roles for the roles in each team. The Users API exposes the equivalent array as meta.roles on each team relationship entry.
See Role management and permissions for how team roles combine.
