Question: How do users view single permissions for resources using the REST API?
Answer: We have to specify the recipient in the URL to see a specific assigned permission.
Please find below Method and URL used to view the single permission of resource:
Method: GET URL: http://<host>:<port>/jasperserver[-pro]/rest_v2/permissions/path/to/resource;recipient=<recipient>
The arguments used for this request is as below:
1) recipient Type/Value: string required,Description: The recipient format specifies the user or role, the object ID, and the organization ID if necessary. The slash character must be encoded, for example: user:%2Forganization_1%2Fjoeuser
It is accepting the option values in both XML and JSON formats.
The Return values for this request is as below:
a) For Success: 200 OK - The body describes the requested permission.
b) For Failure: 204 No Content - 404 Not Found - When the specified resource URI or recipient is invalid, or when the recipient does not have any assigned permission (only inherited).
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now