Delete Project Grant
Delete a project grant. All user grants (role assignments) for this project grant will also be removed. A user will not have access to the project afterward (if permissions are checked). In case the project grant is not found, the request will return a successful response as the desired state is already achieved.
Required permission:
project.grant.delete
Connect-Protocol-Version*1Define the version of the Connect protocol
1Connect-Timeout-Ms?Connect-Timeout-MsDefine the timeout, in ms
application/json- body
projectId*project_idProjectID is the unique identifier of the project.
grantedOrganizationId*granted_organization_idGrantedOrganizationID is the unique identifier of the organization the project was granted to.
Success
application/json- response
deletionDate?deletion_dateDeletionDate is the timestamp of the deletion of the project grant. Note that the deletion date is only guaranteed to be set if the deletion was successful during the request. In case the deletion occurred in a previous request, the deletion date might be empty.
date-timecurl -X POST 'https://example.com/zitadel.project.v2.ProjectService/DeleteProjectGrant' \ -H 'Connect-Protocol-Version: 1' \ -H 'Content-Type: application/json' \ -d '{ "projectId": "string", "grantedOrganizationId": "string"}'{ "deletionDate": "2023-01-15T01:30:15.01Z"}Was this page helpful?
