Skip to content

Commit

Permalink
Adds missing site permissions to sites module (#607)
Browse files Browse the repository at this point in the history
* Add sistes.permissions tag to module mappings.

* Generate profile for sites.

* Sort crawl logs.
  • Loading branch information
peombwa authored Apr 7, 2021
1 parent bb68e5b commit 5882ad1
Show file tree
Hide file tree
Showing 8 changed files with 1,357 additions and 809 deletions.
2 changes: 1 addition & 1 deletion config/ModulesMapping.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"SchemaExtensions": "^schemaExtensions\\.",
"Search": "^search\\.|^external\\.",
"Security": "^security\\.",
"Sites": "^sites.site$|^sites.itemAnalytics$|^sites.columnDefinition$|^sites.contentType$|^sites.drive$|^sites.list$|^sites.sitePage$|^users.site$|^groups.site$|^sites.Functions$|^sites.Actions$",
"Sites": "^sites.site$|^sites.itemAnalytics$|^sites.columnDefinition$|^sites.contentType$|^sites.drive$|^sites.list$|^sites.sitePage$|^sites.permission$|^users.site$|^groups.site$|^sites.Functions$|^sites.Actions$",
"Teams": "^teams\\.|^chats\\.|^users.chat$|^appCatalogs.teamsApp$|^users.userTeamwork$|^teamwork\\.|^users.team$|^groups.team$",
"Users": "^users.user$|^users.directoryObject$|^users.licenseDetails$|^users.notification$|^users.outlookUser$|^users.profilePhoto$|^users.userSettings$|^users.extension$|^users.oAuth2PermissionGrant$|^users.todo$",
"Users.Actions": "^users.Actions$",
Expand Down
264 changes: 264 additions & 0 deletions openApiDocs/beta/Sites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21647,6 +21647,270 @@ paths:
default:
$ref: '#/components/responses/error'
x-ms-docs-operation-type: action
'/sites/{site-id}/permissions':
get:
tags:
- sites.permission
summary: Get permissions from sites
operationId: sites_ListPermissions
parameters:
- name: site-id
in: path
description: 'key: id of site'
required: true
schema:
type: string
x-ms-docs-key-type: site
- $ref: '#/components/parameters/top'
- $ref: '#/components/parameters/skip'
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/filter'
- $ref: '#/components/parameters/count'
- name: $orderby
in: query
description: Order items by property values
style: form
explode: false
schema:
uniqueItems: true
type: array
items:
enum:
- id
- id desc
- expirationDateTime
- expirationDateTime desc
- grantedTo
- grantedTo desc
- grantedToIdentities
- grantedToIdentities desc
- hasPassword
- hasPassword desc
- inheritedFrom
- inheritedFrom desc
- invitation
- invitation desc
- link
- link desc
- roles
- roles desc
- shareId
- shareId desc
type: string
- name: $select
in: query
description: Select properties to be returned
style: form
explode: false
schema:
uniqueItems: true
type: array
items:
enum:
- id
- expirationDateTime
- grantedTo
- grantedToIdentities
- hasPassword
- inheritedFrom
- invitation
- link
- roles
- shareId
type: string
- name: $expand
in: query
description: Expand related entities
style: form
explode: false
schema:
uniqueItems: true
type: array
items:
enum:
- '*'
type: string
responses:
'200':
description: Retrieved navigation property
content:
application/json:
schema:
title: Collection of permission
type: object
properties:
value:
type: array
items:
$ref: '#/components/schemas/microsoft.graph.permission'
'@odata.nextLink':
type: string
additionalProperties:
type: object
default:
$ref: '#/components/responses/error'
x-ms-pageable:
nextLinkName: '@odata.nextLink'
operationName: listMore
x-ms-docs-operation-type: operation
post:
tags:
- sites.permission
summary: Create new navigation property to permissions for sites
operationId: sites_CreatePermissions
parameters:
- name: site-id
in: path
description: 'key: id of site'
required: true
schema:
type: string
x-ms-docs-key-type: site
requestBody:
description: New navigation property
content:
application/json:
schema:
$ref: '#/components/schemas/microsoft.graph.permission'
required: true
responses:
'201':
description: Created navigation property.
content:
application/json:
schema:
$ref: '#/components/schemas/microsoft.graph.permission'
default:
$ref: '#/components/responses/error'
x-ms-docs-operation-type: operation
'/sites/{site-id}/permissions/{permission-id}':
get:
tags:
- sites.permission
summary: Get permissions from sites
operationId: sites_GetPermissions
parameters:
- name: site-id
in: path
description: 'key: id of site'
required: true
schema:
type: string
x-ms-docs-key-type: site
- name: permission-id
in: path
description: 'key: id of permission'
required: true
schema:
type: string
x-ms-docs-key-type: permission
- name: $select
in: query
description: Select properties to be returned
style: form
explode: false
schema:
uniqueItems: true
type: array
items:
enum:
- id
- expirationDateTime
- grantedTo
- grantedToIdentities
- hasPassword
- inheritedFrom
- invitation
- link
- roles
- shareId
type: string
- name: $expand
in: query
description: Expand related entities
style: form
explode: false
schema:
uniqueItems: true
type: array
items:
enum:
- '*'
type: string
responses:
'200':
description: Retrieved navigation property
content:
application/json:
schema:
$ref: '#/components/schemas/microsoft.graph.permission'
default:
$ref: '#/components/responses/error'
x-ms-docs-operation-type: operation
patch:
tags:
- sites.permission
summary: Update the navigation property permissions in sites
operationId: sites_UpdatePermissions
parameters:
- name: site-id
in: path
description: 'key: id of site'
required: true
schema:
type: string
x-ms-docs-key-type: site
- name: permission-id
in: path
description: 'key: id of permission'
required: true
schema:
type: string
x-ms-docs-key-type: permission
requestBody:
description: New navigation property values
content:
application/json:
schema:
$ref: '#/components/schemas/microsoft.graph.permission'
required: true
responses:
'204':
description: Success
default:
$ref: '#/components/responses/error'
x-ms-docs-operation-type: operation
delete:
tags:
- sites.permission
summary: Delete navigation property permissions for sites
operationId: sites_DeletePermissions
parameters:
- name: site-id
in: path
description: 'key: id of site'
required: true
schema:
type: string
x-ms-docs-key-type: site
- name: permission-id
in: path
description: 'key: id of permission'
required: true
schema:
type: string
x-ms-docs-key-type: permission
- name: If-Match
in: header
description: ETag
schema:
type: string
responses:
'204':
description: Success
default:
$ref: '#/components/responses/error'
x-ms-docs-operation-type: operation
'/sites/{site-id}/permissions/{permission-id}/microsoft.graph.grant':
post:
tags:
Expand Down
Loading

0 comments on commit 5882ad1

Please sign in to comment.