Shares a member resource: adds permissions to members, groups or the organization. The current permissions stay.
Required role: ORG_VIEWER, and the current user must have the OWNER permission on the resource. The organization path parameter must be the organization of the access token.
Fields
The body is an array of permissions to add:
| Field | Required | Description |
|---|---|---|
principal | Yes | Email of a member, a group or the organization (see below) |
permission | Yes | VIEW or MODIFY (case-insensitive). MODIFY also adds VIEW. |
A permission the principal already has is ignored. The PREFERENCES_NG and PREFERENCES_PORTAL resources can't be shared.
Response
All the permissions on the resource after the change.
result holds one entry per principal, with its principal and all its permissions.
Permissions
| Permission | Allows |
|---|---|
OWNER | Delete the resource, and add or remove permissions. Only the member who created the resource has it. |
MODIFY | Update the content of the resource. Includes VIEW. |
VIEW | Get the resource and its permissions |
A permission is given to a principal:
| Principal | Who |
|---|---|
| Member | The email of a member of your organization |
| Group | The email of a group of your organization, such as [email protected]: all its members |
| Organization | The email of your organization, made of the first part of its id, such as [email protected]: all its members |
Emails are compared ignoring the case.
When it fails
All the permissions are checked before any is added: when one fails, none is added.
400: apermissionis missing,OWNERor isn't a valid permission, aprincipalisn't a valid email, is[email protected]or an API key, isn't a group of your organization, or is the email of another organization, or the resource isPREFERENCES_NGorPREFERENCES_PORTAL.403: the user doesn't have theOWNERpermission on the resource, or doesn't have theVIEWpermission on it.404: the resource doesn't exist in your organization, or aprincipalisn't a member of your organization.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||