You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
GraphQL: Replace list of company role permissions with a structural view (#8298)
* GraphQL: Replace list of company role permissions with a structural view
* move paragraph
* add whitespace
* Apply suggestions from code review
Co-authored-by: Erik Marr <[email protected]>
Co-authored-by: Erik Marr <[email protected]>
Use the `createCompanyRole` mutation to create a new company role and permissions.
9
+
The `createCompanyRole` mutation defines a new company role. To create a role, you must provide an array of permissions that determine which resources the user can access.
10
+
11
+
{% include webapi/b2b_roles.md %}
12
+
13
+
Also, you can get the list of all resources defined within the company using the [`company`]({{page.baseurl}}/graphql/queries/company.html) query.
10
14
11
15
## Syntax
12
16
@@ -121,12 +125,6 @@ Attribute | Data Type | Description
121
125
`name` | String! | Role name.
122
126
`permissions` | [String!]! | A list of Role permission resources. Required array value for a field with strings as values of array.
123
127
124
-
### Available permissions
125
-
126
-
{% include b2b/company/company-acl.md %}
127
-
128
-
Also, you can get the list of all resources defined within the company using [`company`]({{page.baseurl}}/graphql/queries/company.html) query.
129
-
130
128
## Output attributes
131
129
132
130
The `CreateCompanyRoleOutput` output object contains the following attribute:
Copy file name to clipboardExpand all lines: src/guides/v2.4/graphql/mutations/update-company-role.md
+3-7Lines changed: 3 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,9 @@ b2b_only: true
8
8
9
9
Use the `updateCompanyRole` mutation to update the company role and permissions.
10
10
11
-
You can get the role ID with the [`company`]({{page.baseurl}}/graphql/queries/company.html) query.
11
+
You can get the role ID and the list of all resources defined within the company using the [`company`]({{page.baseurl}}/graphql/queries/company.html) query.
12
+
13
+
{% include webapi/b2b_roles.md %}
12
14
13
15
## Syntax
14
16
@@ -163,12 +165,6 @@ Attribute | Data Type | Description
163
165
`name` | String | Role name.
164
166
`permissions` | [String!] | A list of role permission resources.
165
167
166
-
### Available permissions
167
-
168
-
{% include b2b/company/company-acl.md %}
169
-
170
-
Also, you can get the list of all resources defined within the company using [`company`]({{page.baseurl}}/graphql/queries/company.html) query.
171
-
172
168
## Output attributes
173
169
174
170
The `UpdateCompanyRoleOutput` output object contains the following attribute:
0 commit comments