Skip to content

graph: Add $expand=memberOf support to /me - #4476

Merged
rhafer merged 1 commit into
owncloud:masterfrom
rhafer:expand-me
Aug 31, 2022
Merged

rhafer merged 1 commit into
owncloud:masterfrom
rhafer:expand-me

Conversation

@rhafer

@rhafer rhafer commented Aug 30, 2022

Copy link
Copy Markdown
Contributor

This add support for expanding the user's group membershiips to '/me':

# curl -k -u einstein:relativity 'https://localhost:9200/graph/v1.0/me/?$expand=memberOf' | jq
{
  "displayName": "Albert Einstein",
  "id": "4c510ada-c86b-4815-8820-42cdf82c3d51",
  "mail": "[email protected]",
  "memberOf": [
    {
      "displayName": "users",
      "id": "509a9dcd-bb37-4f4f-a01a-19dca27d9cfa"
    },
    {
      "displayName": "sailing-lovers",
      "id": "6040aa17-9c64-4fef-9bd0-77234d71bad0"
    },
    {
      "displayName": "violin-haters",
      "id": "dd58e5ec-842e-498b-8800-61f2ec6f911f"
    },
    {
      "displayName": "physics-lovers",
      "id": "262982c1-2362-4afa-bfdf-8cbfef64a06e"
    }
  ],
  "onPremisesSamAccountName": "einstein"
}

The spec update for the generated clients is in: owncloud/libre-graph-api#53

Fixes: #4283

@rhafer
rhafer requested review from butonic and dragonchaser August 30, 2022 13:56
@rhafer rhafer self-assigned this Aug 30, 2022
@update-docs

update-docs Bot commented Aug 30, 2022

Copy link
Copy Markdown

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@AlexAndBear
AlexAndBear self-requested a review August 30, 2022 15:43
@rhafer
rhafer merged commit a26b16c into owncloud:master Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Groups displayed as UUID on the Account page

2 participants