Top Menu

Jump to content
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    Home
    • 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
    • Upgrade to Enterprise edition
    • 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?

      or sign in with your existing account

      OpenProject ID Google

Side Menu

Collapse project menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Expand project menu
General discussion
  1. OpenProject Community
  2. OpenProject
  3. Forums
  4. General discussion
  5. Add global role via API

Add global role via API

Added by Maurice Kunze 9 months ago

Hello,


is there any plan in the future to add the option to add a global role to a user via the API?


Regards


Replies (4)

RE: Add global role via API - Added by Alexander Stock 9 months ago

Hi Maurice,

it is possible to assign roles via the create membership ("Create a membership") endpoint. Have you tried to use this already?

https://www.openproject.org/docs/api/endpoints/memberships/

Best,
Alexander

RE: Add global role via API - Added by Maurice Kunze 9 months ago

Hello Alexander,

yes i already tried this endpoint and it didnt work. I can only create a membership for a role in a specific project.
I cant add a global role to a user via this endpoint.


Regards

RE: Add global role via API - Added by Maurice Kunze 9 months ago

Hello Alexander,

i just found out that it works with the endpoint.
I tested it with out test instance and found the error.

Thanks.

Regards


RE: Add global role via API - Added by Alexander Stock 9 months ago

Thank you for your follow-up, Maurice! 
I am glad it works now.

  • (1 - 4/4)
Loading...