Top Menu

Jump to content
Home
    • Projects
    • Activity
    • Work packages
    • Calendars
    • Team planners
    • Boards
    • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?
      Create a new account

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • Forums
  • Feature tour
    Feature tour
You are here:
  • Forums
  • General discussion

Content

API filter roles by id return unauthorized 403, but I can retrieve all the results

Added by Christian Sicari over 2 years ago

Environment:

Docker distributed installation

OP version: OpenProject 11.1.2 (PostgreSQL)

As administrator I got my API token. I am using it in different scenarios. Now I as trying to get information by a given role.

I tested the endpoint /api/v3/roles and /api/v3/roles/{1}

The first one returns 200 and in the body I got all the results

The second one return 403 with body message

{

"_type": "Error",

"errorIdentifier": "urn:openproject-org:api:v3:errors:MissingPermission",

"message": "You are not authorized to access this resource."

}

I attach the postman results


Loading...