List all user grants
GET {{baseUrl}}/user-grants?userId=<string>&number=0&size=10
Lists all user grants
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
userId | string | Specifies the ID of the relevant user | |
number | number | Index of page to be returned. Number of available pages is returned in response body property page.totalPages. | |
size | number | Specifies the number of elements in a page. Maximum number of resources to be returned per page. The service might return less resources. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
If-None-Match | string | Specifies the ETag of the resource | |
x-user-role | string | (Required) Specifies the user role with which the user intends to perform the operation | |
Accept | string |
RESPONSES
status: OK
{"userGrants":[{"id":"a1b2c3d4","userId":"a1b2c3d4","role":"ORGANIZATION_ADMIN","node":{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"path":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"pathName":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"product":{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"path":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"pathName":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}},{"id":"a1b2c3d4","userId":"a1b2c3d4","role":"ORGANIZATION_ADMIN","node":{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"path":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"pathName":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"product":{"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"path":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"pathName":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}}],"meta":{"page":{"totalPages":-51057239,"number":56140340,"size":-22891672,"elements":-65940765,"totalElements":-69158131}}}