Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update validCustomRolePermissions to include okta.workflows.invoke #1160

Merged
merged 3 commits into from
Jun 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions okta/resource_okta_admin_role_custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ import (
)

var validCustomRolePermissions = []string{
"okta.authzServers.manage",
"okta.authzServers.read",
"okta.apps.assignment.manage",
"okta.apps.manage",
"okta.apps.read",
"okta.customizations.manage",
"okta.customizations.read",
"okta.groups.appAssignment.manage",
"okta.groups.create",
"okta.groups.manage",
Expand All @@ -38,6 +42,7 @@ var validCustomRolePermissions = []string{
"okta.users.manage",
"okta.users.read",
"okta.users.userprofile.manage",
"okta.workflows.invoke",
}

func resourceAdminRoleCustom() *schema.Resource {
Expand Down
9 changes: 7 additions & 2 deletions website/docs/r/admin_role_custom.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@ The following arguments are supported:
- `description` - (Required) A human-readable description of the new Role.

- `permissions` - (Optional) The permissions that the new Role grants. At least one
permission must be specified when creating custom role. Valid values: `"okta.apps.assignment.manage"`,
permission must be specified when creating custom role. Valid values: `"okta.authzServers.manage"`,
`"okta.authzServers.read"`,
`"okta.apps.assignment.manage"`,
`"okta.apps.manage"`,
`"okta.apps.read"`,
`"okta.customizations.manage"`,
`"okta.customizations.read"`,
`"okta.groups.appAssignment.manage"`,
`"okta.groups.create"`,
`"okta.groups.manage"`,
Expand All @@ -57,7 +61,8 @@ The following arguments are supported:
`"okta.users.lifecycle.unsuspend"`,
`"okta.users.manage"`,
`"okta.users.read"`,
`"okta.users.userprofile.manage"`.
`"okta.users.userprofile.manage"`,
`"okta.workflows.invoke"`.,

## Attributes Reference

Expand Down