JavaScript disabled You need to activate JavaScript in order to use OpenProject! Learn more
Added by Maurice Kunze 12 days 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
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
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.
i just found out that it works with the endpoint. I tested it with out test instance and found the error.
Thanks.
Thank you for your follow-up, Maurice! I am glad it works now.
Replies (4)
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
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
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
Thank you for your follow-up, Maurice!
I am glad it works now.