Share a member resource

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:

FieldRequiredDescription
principalYesEmail of a member, a group or the organization (see below)
permissionYesVIEW 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

PermissionAllows
OWNERDelete the resource, and add or remove permissions. Only the member who created the resource has it.
MODIFYUpdate the content of the resource. Includes VIEW.
VIEWGet the resource and its permissions

A permission is given to a principal:

PrincipalWho
MemberThe email of a member of your organization
GroupThe email of a group of your organization, such as [email protected]: all its members
OrganizationThe 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: a permission is missing, OWNER or isn't a valid permission, a principal isn'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 is PREFERENCES_NG or PREFERENCES_PORTAL.
  • 403: the user doesn't have the OWNER permission on the resource, or doesn't have the VIEW permission on it.
  • 404: the resource doesn't exist in your organization, or a principal isn't a member of your organization.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required

Id of your organization (must match the access token)

uuid
required

Id of the member resource

Body Params

The permissions to add: an array of principal and permission.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json