Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit bc52214

Browse files
keharpererikmarr
andauthored
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]>
1 parent 1db2d5f commit bc52214

File tree

3 files changed

+8
-70
lines changed

3 files changed

+8
-70
lines changed

src/_includes/b2b/company/company-acl.md

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/guides/v2.4/graphql/mutations/create-company-role.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ contributor_link: https://www.atwix.com/
66
b2b_only: true
77
---
88

9-
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.
1014

1115
## Syntax
1216

@@ -121,12 +125,6 @@ Attribute | Data Type | Description
121125
`name` | String! | Role name.
122126
`permissions` | [String!]! | A list of Role permission resources. Required array value for a field with strings as values of array.
123127

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-
130128
## Output attributes
131129

132130
The `CreateCompanyRoleOutput` output object contains the following attribute:

src/guides/v2.4/graphql/mutations/update-company-role.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ b2b_only: true
88

99
Use the `updateCompanyRole` mutation to update the company role and permissions.
1010

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 %}
1214

1315
## Syntax
1416

@@ -163,12 +165,6 @@ Attribute | Data Type | Description
163165
`name` | String | Role name.
164166
`permissions` | [String!] | A list of role permission resources.
165167

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-
172168
## Output attributes
173169

174170
The `UpdateCompanyRoleOutput` output object contains the following attribute:

0 commit comments

Comments
 (0)