Skip to content

Commit

Permalink
Merge pull request #191 from owncloud/add-permissions-filter-and-secret
Browse files Browse the repository at this point in the history
add permissions $filter and $select
  • Loading branch information
butonic authored Aug 13, 2024
2 parents f8685a3 + f5803a6 commit 7b59167
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions api/openapi-spec/v1.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,8 @@ paths:
schema:
type: string
x-ms-docs-key-type: drive
- $ref: '#/components/parameters/permissionsFilter'
- $ref: '#/components/parameters/permissionsSelect'
responses:
'200':
description: Retrieved resource
Expand Down Expand Up @@ -1552,6 +1554,8 @@ paths:
schema:
type: string
x-ms-docs-key-type: item
- $ref: '#/components/parameters/permissionsFilter'
- $ref: '#/components/parameters/permissionsSelect'
responses:
'200':
description: Retrieved resource
Expand Down Expand Up @@ -5564,6 +5568,30 @@ components:
value: appRoleAssignments/any(x:x/appRoleId eq 910367f9-4041-4db1-961b-d1e98f708eaf) and memberOf/any(x:x/id eq 4cceeace-b8ca-472a-9788-e73da11de14c)
list all users that are a member of any of groups and have a specific role assigned:
value: (memberOf/any(x:x/id eq 910367f9-4041-4db1-961b-d1e98f708eaf) or memberOf/any(x:x/id eq 4cceeace-b8ca-472a-9788-e73da11de14c)) and appRoleAssignments/any(x:x/appRoleId eq 910367f9-4041-4db1-961b-d1e98f708eaf)
permissionsFilter:
name: $filter
in: query
description: Filter items by property values. By default all permissions are returned and the avalable sharing roles are limited to normal users. To get a list of sharing roles applicable to federated users use the example $select query and combine it with $filter to omit the list of permissions.
schema:
type: string
examples:
filter to see roles for ocm shares:
value: \@libre.graph.permissions.roles.allowedValues/rolePermissions/any(p:contains(p/condition, '@Subject.UserType=="Federated"'))
permissionsSelect:
name: $select
in: query
description: Select properties to be returned. By default all properties are returned. Select the roles property to fetch the available sharing roles without resolving all the permissions. Combine this with the $filter parameter to fetch the actions applicable to federated users.
style: form
explode: false
schema:
uniqueItems: true
type: array
items:
enum:
- \@libre.graph.permissions.actions.allowedValues
- \@libre.graph.permissions.roles.allowedValues
- value
type: string
count:
name: $count
in: query
Expand Down

0 comments on commit 7b59167

Please sign in to comment.