Sync Projects Principals
Sync principals assigned to any project within user organization
The id of the project.
The version of the API in yyyy-MM-dd format. For versioning information refer to /project-service/api/about.
'Success'
{
"id": "c493a95e-c4d1-4496-8595-e73902701c95:fe69d7ca-40a6-4de5-8f33-d462f4656938",
"email": "[email protected]",
"type": "user",
"role": "member"
}
ID of the user or id of the group in CSP
The username of the user or display name of the group. When assigning a group, the email is expected to have the format displayName@domain. In the case where the display name in Identity provider is in the format:
to ensure proper functioning.
Type of the principal. Currently supported 'user' (default) and 'group'.
Role of this member. Currently supported 'member', 'viewer', 'administrator', 'supervisor'.
Forbidden, the user lacks permissions
'Not found' if no project with the provided id
curl -X POST -H 'Authorization: <value>' https://{api_host}/project-service/api/projects/{id}/sync-principals