Get Privileges
Note:
Version Requirement:This functionality is for Dremio v18.0+ Enterprise Edition only.
This API returns a list of privileges associated with the user, up to a total of 100 privileges.
Endpoint Syntax
Method and URLGET /api/v3/user/{id}/privilege
Required Privileges
All users executing this Rest API must have the MANAGE GRANTS privilege assigned to receive a response output.
Response Output
This is the standard response output for the API.
Response output{"data": [
{
"name": "src1.folder1.db1",
"type": "dataset",
"privilege": "SELECT"
},
…
]
}
Response Codes
200
- Success.403
- The user executing the API request lacks theMANAGE GRANTS
permission.404
- The user is not found.
Example
curl request examplecurl -X GET --location "http://localhost:9047/api/v3/user/5ebcf4fa-ef8d-4bb4-8660-b18b18f661d6/privilege" \
-H "Authorization: _dremiohrr395nv31g8k610616tucp91g" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Was this page helpful?
Glad to hear it! Thank you for your feedback.
Sorry to hear that. Thank you for your feedback.