Skip to content

[FEATURE REQUEST] Edit a space member #4724

@jesmrec

Description

@jesmrec

An existing member inside of an space can be edited. There are two values to be edited:

  • Permission: it's mandatory, so it can be changed but removed.
  • Expiration date: it could be either changed of removed.

Scratch point: the list of available members in the space (not empty)

Image

Only space managers can edit permission or expiration date of an existing member.

  • Associated permission: libre.graph/driveItem/permissions/update

Options to let users edit:

  • Adding a pencil like the regular sharing in the member's row will keep consistency across the app ✅
  • Making the row clickable, but is hidden
  • A disclosure icon like iOS, not sure if Android native

[!] Important restriction:
An space must always have at least one manager. That means, if a space only has one manager, that manager is not editable (role can not be changed and no expiration date allowed)

View to edit, to be the same as in the creation step like:

Image

REQUEST

PATCH graph/v1beta1/drives/<drive-id>/root/permissions/u:<user-id>

with the following body:

{
    "expirationDateTime": "2026-02-20T13:18:02.620Z",
    "roles": [
        "a8d5fe5e-96e3-418d-825b-534dbdf22b99"
    ]
}

expirationDateTime field is gone if there is no expiration date

After finishing the process, an snackbar will notify user whether the operation was successful or not.

TASKS

  • Research (if needed)
  • Create branch feature/edit_a_space_member
  • Development tasks
    • Show the pencil icon only for users with proper permissions
    • Display edit member view when pencil icon is clicked
    • Implement logic to edit a space member
    • ...
    • Implement unit tests (if needed)
  • Code review and apply changes requested
  • Design test plan
  • QA
  • Merge branch feature/edit_a_space_member into master

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions