create PersonGroupmembership
POST {{base_url}}/v1/persongroupmemberships
Does:
Adds a relation between a Person and a Persongroup (or External PersonGroup) object.
Purpose:
- make the Person visible in the Person Manager widget GUI.
- provides the authorization (ie. rights) that exist on the Persongroup to the Person
- helps maintain a semantically / hierarchically meaningful structure between Persons (think of access rights or reporting)
Change this:
In the POST body, change the Member value (using the readonly Person ID) and the MemberOf values (using the readonly PersonGroup ID).
Live example:
A couple of environment variables are useful for this call, namely the TESTPERSON as the latest Person you created and the PMGROUPA and PMGROUPB variables. In a Runner, it makes sense to interchange these two variables in the body of the request. Changing TESTPERSON makes less sense.
Also populates most of the other calls to the GroupMembership resource, just as a matter of convenience to you.
Request Body
{"MemberOf"=>"{{PMGROUPA}}", "Member"=>"{{TESTPERSON}}"}