Skip to content

Support member role assigment via invitation API

Jarka Košanová requested to merge 393239-invite-users-custom-roles into master

What does this MR do and why?

Related to #427478 (closed)

How to set up and validate locally

  1. Pick a group
  2. 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"

  1. 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.

Related to #393239 (closed)

Edited by Jarka Košanová

Merge request reports