List a user's roles
List the roles assigned to a subject (an app user or tenant). The subject source is inferred from context; pass subject_type to force it.
Authorization
bearerAuth Authorization for API
In: header
Path Parameters
Your app's unique id. Find it in the console under the app's Settings, or in the URL of any app page.
uuidQuery Parameters
A JSON filter tree, URL-encoded. {"status":"open"} matches equality and {"col":null} IS NULL. Compare with {"col":{"$gt"|"$gte"|"$lt"|"$lte"|"$ne":v}}, {"$in":[...]} (up to 100 values) or {"$between":[low,high]}; match text with {"$contains":"text"} or {"$startsWith":"text"} (literal text, following the column's collation). Combine with {"$and":[...]} / {"$or":[...]}. A reference is filtered by its <name>_uid column and uids; id, the scope columns, raw foreign-key columns and redacted columns are refused. At most 20 conditions, nested 3 deep.
Up to 3 sort columns, comma-separated, each column.asc or column.desc (asc by default). <name>_uid sorts by the reference. Not with after.
Return only these columns, comma-separated (the row's uid always comes back). A redacted column comes back masked.
Up to 3 references to return the referenced row for, comma-separated, named without _uid (assignee for assignee_uid). Each is read as you, under that table's own permissions: a row you cannot read comes back null.
Rows per page: 50 by default, at most 1,000.
1 <= value <= 1000Rows to skip. Pair with order. For a large table use after instead.
0 <= valueKeyset paging in creation order: empty for the first page, then the previous page's paging.nextCursor. A row added or removed between pages never shifts another onto two pages, and a deep page costs what the first does. Takes no order or offset.
1 to also count every matching row into paging.total (a second query). Otherwise paging.total is null.
Value in
- "1"
- "0"
Older form of where for one equality, column:value. ANDed with where when both are given.
Older form of order for one column, column [ASC|DESC]. Ignored when order is given.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/497f6eca-6276-4993-bfeb-53cbbbba6f08/autocrud/users/actions/{userUid}/roles"{ "items": [ { "created_at": "2019-08-24T14:15:22Z", "deleted_at": "2019-08-24T14:15:22Z", "email": "string", "fname": "string", "level": 0, "lname": "string", "password_hash": "string", "password_login_disabled_at": "2019-08-24T14:15:22Z", "status": "string", "updated_at": "2019-08-24T14:15:22Z", "user_type": "string", "uid": "07cc67f4-45d6-494b-adac-09b5cbc7e2b5" } ], "paging": { "limit": 0, "offset": 0, "count": 0, "total": 0, "hasMore": true, "nextCursor": "string" }}Create an organization beyond your own, which you then own
Create an organization beyond your own, which you then own. Off unless the app allows it, capped per user, and only for an account that has confirmed its email.
Give a user a role
Give a user a role in an org of this app. You may only grant a role carrying what you hold.