Jump to content
We've recently updated our Privacy Statement, available here ×
  • Viewing a Single Permission of resource using REST API


    Prasad B
    • Features: JasperReports Server Version: v9.0.0 Product: JasperReports® Server

    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).


    User Feedback

    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...