Skip to content

[FEATURE REQUEST] Sharing NG: List shares #4876

@jesmrec

Description

@jesmrec

Listing the existing shares (users of groups) of any item.

List

GET <url>/graph/v1beta1/drives/<drive-id>items/<item-id>/permissions

with response:

{
    "@libre.graph.permissions.actions.allowedValues": [
      ...
    ],
    "@libre.graph.permissions.roles.allowedValues": [
      <information relevant for create share>
    ],
    "value": [
        {
            "createdDateTime": "2026-05-29T11:13:15.670197346Z",
            "grantedToV2": {
                "user": {
                    "@libre.graph.userType": "Member",
                    "displayName": "einstein",
                    "id": "dfb353c9-ca88-41d5-a236-2c9e9c7dc115"
                }
            },
            "id": "8ded28fc-94db-404a-82e9-8be02328aaf6:3d3e616e-92c7-430f-93bd-6fc9ae970ae9:079dd41c-729d-4098-a0cc-6692879e8612",
            "invitation": {
                "invitedBy": {
                    "user": {
                        "@libre.graph.userType": "Member",
                        "displayName": "user2",
                        "id": "54e131de-1c06-412a-9a85-0f5392c1ebba"
                    }
                }
            },
            "roles": [
                "b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5"
            ]
        },
        {
            "createdDateTime": "2026-05-29T11:15:59.51523438Z",
            "hasPassword": true,
            "id": "OWTZkJHWbVYKVQH",
            "link": {
                "@libre.graph.displayName": "",
                "@libre.graph.quickLink": false,
                "preventsDownload": false,
                "type": "view",
                "webUrl": "https://.../s/NcHPkyRBxPebvIK"
            }
        }
    ]
}

every sharee is defined in the value array with information about itself and the invitation.

Important to mind that links information is also attached to prevent crashes

TASKS

  • Research (if needed)
  • Create branch feature/feature_name
  • Development tasks
    • Implement whatever
    • ...
    • Implement unit tests (if needed)
  • Code review and apply changes requested
  • Design test plan
  • QA
  • Merge branch feature/feature_name into master

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions