Open link in a new tab

Content

Expand project menu

Add global role via API

Hello,


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


Regards

Message actions

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

Message actions

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

Message actions

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


Message actions

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