Add permissions on a project

Gives permissions on a project of your organization. Permissions are added to the ones the principals already have; nothing is removed. To remove permissions, use PUT .../permissions or DELETE .../permissions/{permission}/members/{member}.

Required role: ORG_EDITOR, and the current user must have the OWNER permission on the project.

The body is a list of { "principal": "...", "permissions": [ ... ] }. A permission the principal already has is ignored.

When it fails

Nothing is changed if any item is invalid. 400 if:

  • principal or permissions is missing or empty, or principal is not an email
  • a permission isn't a project permission, or isn't allowed for the kind of principal (see the tables below)
  • after adding, MODIFY would be set without VIEW, or OWNER without VIEW and MODIFY. Send them together (["OWNER", "MODIFY", "VIEW"]) unless the principal already has them.
  • an organization principal isn't yours
  • principal is [email protected]

404 if a member or group isn't a member or group of your organization.

Response

result is the complete list of permissions of the project, one entry per principal, including [email protected] (VIEW) when the project is public.

Principals

A principal is the email of who gets the permissions:

PrincipalFormatAllowed permissions
MemberThe member's email ([email protected]). Must be a member of your organization.All
Group<id>@group.jmapcloud.io. Must be a group of your organization.VIEW, MODIFY
Your organization (every member)<first 8 characters of your organization id>@org.jmapcloud.ioVIEW

Projects can't be shared with other organizations ([email protected] or a trusted organization). [email protected] can't be set here: make the project public with PATCH .../projects/{project} ("public": true).

Permissions

PermissionGrants
VIEWSeeing the project and its content
MODIFYChanging the project, its layers, layer groups, layers order and tags (requires VIEW)
OWNERDeleting the project, copying it, and managing its permissions (requires VIEW and MODIFY)

Permission names are case-insensitive.

Data sources of the project

A principal with a permission on the project also gets, inherited from the project, VIEW and the matching extract permission (EXTRACT_FEATURE, EXTRACT_ROW or EXTRACT_RASTER) on the data sources of its layers and tables and of its terrain. They are removed when the principal loses its last permission on the project.

Organization

organization must be the organization of the access token, and the project must belong to it; otherwise the request returns 404.

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 project

Body Params

Principals and the permissions to add to each

Responses

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