Skip to main content

Grant projects to users or groups in one batch.

POST/api/v1/projects/batch-grant-accesspermissions:admin

Each item grants one project to one principal. An item already granted is answered 200 unchanged. The documents of the changed projects are re-synced. atomic is required. Needs Manage Project Security; a user item also needs Grant Project User Access and a group item Grant Project Group Access. The answer names the projects granted only to a caller with View Project Security; without it the answer is a write receipt.

Scopepermissions:admin (sensitive)
AsynchronousNo
MCP toolbatch_grant_project_access
Portal permissionsmanage_project_security

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonBatchBodyOfv1ProjectGrantBatchItemInput

Responses​

StatusDescriptionBody
200Success.application/json object or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

BatchBodyOfv1ProjectGrantBatchItemInput​

FieldTypeRequiredDescription
atomicbooleanRequired
itemsarray of ProjectGrantBatchItemInputRequired

GrantPrincipal​

FieldTypeRequiredDescription
group_idstring or nullRequired
typestringRequireduser or group; everyone in the access listing for what is open to all.
user_idstring or nullRequired

ProjectGrantBatchItemInput​

FieldTypeRequiredDescription
group_idstring or nullOptional
project_idstringRequired
user_idstring or nullOptionalGive exactly one of user_id and group_id.

ProjectGrantBatchResult​

FieldTypeRequiredDescription
principalGrantPrincipalRequired
project_idstringRequired