Repository navigation
enhancement: make use of unified role for the graph invitation endpoint - #7751
Merged
Merged
Conversation
2 of 8 tasks
rhafer
suggested changes
Nov 23, 2023
rhafer
suggested changes
Nov 23, 2023
…nt, applying multiple roles works and result in a merged cs3 permission set
rhafer
approved these changes
Nov 23, 2023
|
Kudos, SonarCloud Quality Gate passed! |
ownclouders
pushed a commit
that referenced
this pull request
Nov 23, 2023
…nt, applying multiple roles works and result in a merged cs3 permission set (#7751)
This was referenced Nov 30, 2023
3 of 12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








Description
Up to now the graph beta invitation endpoint made use of the cs3 permission objects (named set aka role).
With the implementation of the new unified roles the api is now able to use those as described in the swagger spec.
Related Issue
Motivation and Context
make use of the unified roles as described in the openAPI spec.
How Has This Been Tested?
example:
request
body (roles)
{ "recipients":[ {"objectId": "{{user_marie_id}}"} ], "ExpirationDateTime": "2055-07-15T14:00:00.000Z", "roles": [ "{{role_viewer_id}}", ] }response (roles)
{ "value": [ { "expirationDateTime": "2055-07-15T16:00:00+02:00", "grantedToV2": { "user": { "displayName": "Marie Skłodowska Curie", "id": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c" } }, "id": "3496f80c-b4c7-40cd-9ee9-f7bfb77c671c:4353a0e1-a947-4588-8be2-7730ac879eda:592a5934-9dda-41f9-8925-ae96411dbdb8", "roles": [ "b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5" ] } ] }body (@libre.graph.permissions.actions)
{ "recipients":[ {"objectId": "{{user_marie_id}}"} ], "ExpirationDateTime": "2055-07-15T14:00:00.000Z", "@libre.graph.permissions.actions":[ "libre.graph/driveItem/content/read" ] }response (@libre.graph.permissions.actions)
{ "value": [ { "@libre.graph.permissions.actions": [ "libre.graph/driveItem/content/read" ], "expirationDateTime": "2055-07-15T16:00:00+02:00", "grantedToV2": { "user": { "displayName": "Marie Skłodowska Curie", "id": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c" } }, "id": "3496f80c-b4c7-40cd-9ee9-f7bfb77c671c:4353a0e1-a947-4588-8be2-7730ac879eda:53cff278-5c94-47b1-99ca-5ce89095b385" } ] }Types of changes
Checklist: