Skip to content

Write delegation for resource administrator #413

@chibenwa

Description

@chibenwa

Upon adding resource administrator (update and creation)
Also position a write delegation onto the resource calendar for each administrator

Upon removing resource administrator (update and delete)
Also revoke this administrative right

Implements a route POST resources?task=repositionWriteRights that for each resource reset the write rights to the actual population of administrators (used eg for migration).

Definition of done: Resource administrator can update resource participation from OpenPaaS calendar SPA

Technically:

curl 'https://dav.linagora.com/calendars/{domainId}/{resourceId}.json' \
  -H 'Authorization: Bearer TECHNICAL_TOKEN' \
  -H 'Accept: application/json, text/plain, */*' \
  -H 'Content-Type: application/json;charset=UTF-8' \
  --data-raw '{"share":{"set":[{"dav:href":"mailto:[email protected]","dav:read-write":true}],"remove":[]}}'

curl 'https://dav.linagora.com/calendars/5f50a663bdaffe002629099c/5f50a663bdaffe002629099c.json' \
  -H 'Authorization: Bearer TECHNICAL_TOKEN' \
  -H 'Accept: application/json, text/plain, */*' \
  -H 'Content-Type: application/json;charset=UTF-8' \
  --data-raw '{"share":{"set":[],"remove":[{"dav:href":"mailto:[email protected]"}]}}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions