This endpoint is in preview and may be modified or removed at any time.
To use this endpoint, add preview=true
to the request query parameters.
Retrieve Markings that the user is currently a member of.
Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:admin-read
.
object
list<MarkingId>
The markings that the user has access to. The user will be able to access resources protected with these markings. This includes organization markings for organizations in which the user is a guest member.
1
2
3
curl \
-H "Authorization: Bearer $TOKEN" \
"https://$HOSTNAME/api/v2/admin/users/f05f8da4-b84c-4fca-9c77-8af0b13d11de/getMarkings?preview=true"
1
2
3
4
5
{
"view": [
"18212f9a-0e63-4b79-96a0-aae04df23336"
]
}
Error Name | ||
---|---|---|
Get | Error Code | PERMISSION_DENIED |
Status Code | 403 | |
Description | Could not getMarkings the User. | |
Parameters | userId |
See Errors for a general overview of errors in the platform.