Support member role assigment via invitation API
What does this MR do and why?
Related to #427478 (closed)
How to set up and validate locally
- Pick a group
- Create a member role for that group using REST API, example:
curl --request POST --header "Content-Type: application/json" --header "Authorization: Bearer <your_access_token>" --data '{"name" : "Custom guest", "base_access_level" : 10, "read_code" : true}' "https://gdk.test:3443/api/v4/groups/:id/member_roles"
- Test the REST API endpoint, example:
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" \ --data "email=test@example.com&access_level=10&member_role_id=<MEMBER_ROLE_ID>" "https://gdk.test:3443/api/v4/groups/:id/invitations"
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #393239 (closed)
Edited by Jarka Košanová