Conversation
micbar
reviewed
Feb 2, 2022
| type: array | ||
| items: | ||
| $ref: '#/components/schemas/identitySet' | ||
| roles: |
Contributor
There was a problem hiding this comment.
what would roles contain? A general list of all available roles?
Author
There was a problem hiding this comment.
Here is how I implemented it right now:
{
"driveType": "project",
"id": "21b74206-a1ea-444e-8dbc-bc60a403bffe",
"lastModifiedDateTime": "2022-02-01T14:22:09.992999279+01:00",
"name": "Moon Project",
"owner": {
"user": {
"id": "ddc2004c-0977-11eb-9d3f-a793888cd0f8"
}
},
"quota": {
"remaining": 1000000000,
"state": "normal",
"total": 1000000000,
"used": 0
},
"root": {
"id": "21b74206-a1ea-444e-8dbc-bc60a403bffe",
"permissions": [
{
"grantedTo": [
{
"user": {
"id": "ddc2004c-0977-11eb-9d3f-a793888cd0f8"
}
}
],
"roles": [
"manager"
]
},
{
"grantedTo": [
{
"user": {
"id": "4c510ada-c86b-4815-8820-42cdf82c3d51"
}
}
],
"roles": [
"viewer"
]
}
],
"webDavUrl": "https://localhost:9200/dav/spaces/21b74206-a1ea-444e-8dbc-bc60a403bffe"
}
},
Roles currently is always a 1 element string array containing either manager, editor or viewer.
I just copied the structure from the ms graph api.
micbar
approved these changes
Feb 2, 2022
| type: array | ||
| items: | ||
| $ref: '#/components/schemas/identitySet' | ||
| roles: |
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.
Add permissions to the driveItem. The permissions attribute will contain the information of who has access to the drive.