Skip to content

getUserScreenScopes

GET
/api/v1/users/{id}/screen-scopes
curl --request GET \
--url https://example.com/api/v1/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/screen-scopes

Read an account’s screen access: the explicit mode and, for restricted access, the granted locations and Display Groups. Requires users.manage and the admin scope. A restricted policy with no grants reaches no screen. configured is false when the account has no stored policy, which also reaches no screen.

id
required
string format: uuid

Screen scope grants

Media typeapplication/json
object
data
required
object
mode
required

All reaches every screen. restricted reaches the union of the granted locations and Display Groups, and nothing without grants.

string
Allowed values: all restricted
scopes
required
Array<object>
object
type
required
string
Allowed values: location group
id
required
string format: uuid
name
string
configured
required

False when the account has no stored policy, which reaches no screen until one is saved.

boolean
wholeFleet
required

Read mode instead. True exactly when a stored policy is in mode all; never derived from the number of grants.

boolean
Example
{
"data": {
"mode": "all",
"scopes": [
{
"type": "location"
}
]
}
}

Dashboard authentication required

Insufficient role

User not found