From e0334ec816dadbd175e355199fcd60d491431838 Mon Sep 17 00:00:00 2001 From: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com> Date: Thu, 20 Apr 2023 10:01:34 +0200 Subject: [PATCH] issue#547: Fix auth0 management api data source not reading scopes (#555) --- internal/auth0/resourceserver/data_source.go | 43 +++- .../auth0/resourceserver/data_source_test.go | 45 ++++- ...cDataResourceServerAuth0APIManagement.yaml | 183 ++++++++++++++++++ 3 files changed, 262 insertions(+), 9 deletions(-) create mode 100644 test/data/recordings/TestAccDataResourceServerAuth0APIManagement.yaml diff --git a/internal/auth0/resourceserver/data_source.go b/internal/auth0/resourceserver/data_source.go index c9ab50aa8..9e5dec324 100644 --- a/internal/auth0/resourceserver/data_source.go +++ b/internal/auth0/resourceserver/data_source.go @@ -2,8 +2,11 @@ package resourceserver import ( "context" + "net/http" "net/url" + "github.com/auth0/go-auth0/management" + "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" @@ -38,11 +41,41 @@ func dataSourceSchema() map[string]*schema.Schema { func readResourceServerForDataSource(ctx context.Context, data *schema.ResourceData, meta interface{}) diag.Diagnostics { resourceServerID := data.Get("resource_server_id").(string) - if resourceServerID != "" { - data.SetId(resourceServerID) - return readResourceServer(ctx, data, meta) + if resourceServerID == "" { + resourceServerID = url.PathEscape(data.Get("identifier").(string)) } - data.SetId(url.PathEscape(data.Get("identifier").(string))) - return readResourceServer(ctx, data, meta) + api := meta.(*management.Management) + resourceServer, err := api.ResourceServer.Read(resourceServerID) + if err != nil { + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + data.SetId("") + return nil + } + return diag.FromErr(err) + } + + // Ensuring the ID is the resource server ID and not the identifier, + // as both can be used to find a resource server with the Read() func. + data.SetId(resourceServer.GetID()) + + result := multierror.Append( + data.Set("name", resourceServer.GetName()), + data.Set("identifier", resourceServer.GetIdentifier()), + data.Set("token_lifetime", resourceServer.GetTokenLifetime()), + data.Set("allow_offline_access", resourceServer.GetAllowOfflineAccess()), + data.Set("token_lifetime_for_web", resourceServer.GetTokenLifetimeForWeb()), + data.Set("signing_alg", resourceServer.GetSigningAlgorithm()), + data.Set("signing_secret", resourceServer.GetSigningSecret()), + data.Set( + "skip_consent_for_verifiable_first_party_clients", + resourceServer.GetSkipConsentForVerifiableFirstPartyClients(), + ), + data.Set("verification_location", resourceServer.GetVerificationLocation()), + data.Set("enforce_policies", resourceServer.GetEnforcePolicies()), + data.Set("token_dialect", resourceServer.GetTokenDialect()), + data.Set("scopes", flattenResourceServerScopes(resourceServer.GetScopes())), + ) + + return diag.FromErr(result.ErrorOrNil()) } diff --git a/internal/auth0/resourceserver/data_source_test.go b/internal/auth0/resourceserver/data_source_test.go index 807c44c05..41de00445 100644 --- a/internal/auth0/resourceserver/data_source_test.go +++ b/internal/auth0/resourceserver/data_source_test.go @@ -2,6 +2,7 @@ package resourceserver_test import ( "fmt" + "os" "regexp" "testing" @@ -31,7 +32,7 @@ resource "auth0_resource_server" "my_api" { } ` -const testAccDataConnectionConfigByIdentifier = testAccGivenAResourceServer + ` +const testAccDataResourceServerConfigByIdentifier = testAccGivenAResourceServer + ` data "auth0_resource_server" "test" { depends_on = [ auth0_resource_server.my_api ] @@ -39,7 +40,7 @@ data "auth0_resource_server" "test" { } ` -const testAccDataConnectionConfigByID = testAccGivenAResourceServer + ` +const testAccDataResourceServerConfigByID = testAccGivenAResourceServer + ` data "auth0_resource_server" "test" { depends_on = [ auth0_resource_server.my_api ] @@ -94,7 +95,7 @@ func TestAccDataSourceResourceServerByIdentifier(t *testing.T) { ), }, { - Config: acctest.ParseTestName(testAccDataConnectionConfigByIdentifier, t.Name()), + Config: acctest.ParseTestName(testAccDataResourceServerConfigByIdentifier, t.Name()), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("data.auth0_resource_server.test", "name", fmt.Sprintf("Acceptance Test - %s", t.Name())), resource.TestCheckResourceAttr("data.auth0_resource_server.test", "identifier", fmt.Sprintf("https://uat.api.terraform-provider-auth0.com/%s", t.Name())), @@ -162,7 +163,7 @@ func TestAccDataSourceResourceServerByID(t *testing.T) { ), }, { - Config: acctest.ParseTestName(testAccDataConnectionConfigByID, t.Name()), + Config: acctest.ParseTestName(testAccDataResourceServerConfigByID, t.Name()), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttrSet("data.auth0_resource_server.test", "resource_server_id"), resource.TestCheckResourceAttr("data.auth0_resource_server.test", "name", fmt.Sprintf("Acceptance Test - %s", t.Name())), @@ -195,3 +196,39 @@ func TestAccDataSourceResourceServerByID(t *testing.T) { }, }) } + +const testAccDataAuth0ManagementAPI = ` +data "auth0_resource_server" "auth0" { + resource_server_id = "112233445566777899011232" +} +` + +func TestAccDataResourceServerAuth0APIManagement(t *testing.T) { + if os.Getenv("AUTH0_DOMAIN") != acctest.RecordingsDomain { + // Skip this test if we're running with a real domain as the Auth0 Management API + // is a singleton resource always created on the tenant and each tenant + // will have it created with different IDs and Identifiers. + t.Skip() + } + + acctest.Test(t, resource.TestCase{ + Steps: []resource.TestStep{ + { + Config: testAccDataAuth0ManagementAPI, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("data.auth0_resource_server.auth0", "name", "Auth0 Management API"), + resource.TestCheckResourceAttr("data.auth0_resource_server.auth0", "identifier", "https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/"), + resource.TestCheckResourceAttr("data.auth0_resource_server.auth0", "token_lifetime", "86400"), + resource.TestCheckResourceAttr("data.auth0_resource_server.auth0", "skip_consent_for_verifiable_first_party_clients", "false"), + resource.TestCheckResourceAttr("data.auth0_resource_server.auth0", "allow_offline_access", "false"), + resource.TestCheckResourceAttr("data.auth0_resource_server.auth0", "signing_alg", "RS256"), + resource.TestCheckResourceAttr("data.auth0_resource_server.auth0", "token_lifetime_for_web", "7200"), + resource.TestCheckResourceAttr("data.auth0_resource_server.auth0", "scopes.#", "136"), + resource.TestCheckResourceAttr("data.auth0_resource_server.auth0", "verification_location", ""), + resource.TestCheckResourceAttr("data.auth0_resource_server.auth0", "enforce_policies", "false"), + resource.TestCheckResourceAttr("data.auth0_resource_server.auth0", "token_dialect", ""), + ), + }, + }, + }) +} diff --git a/test/data/recordings/TestAccDataResourceServerAuth0APIManagement.yaml b/test/data/recordings/TestAccDataResourceServerAuth0APIManagement.yaml new file mode 100644 index 000000000..b523d35f6 --- /dev/null +++ b/test/data/recordings/TestAccDataResourceServerAuth0APIManagement.yaml @@ -0,0 +1,183 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.16.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/112233445566777899011232 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"112233445566777899011232","name":"Auth0 Management API","identifier":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"description":"Read Client Grants","value":"read:client_grants"},{"description":"Create Client Grants","value":"create:client_grants"},{"description":"Delete Client Grants","value":"delete:client_grants"},{"description":"Update Client Grants","value":"update:client_grants"},{"description":"Read Users","value":"read:users"},{"description":"Update Users","value":"update:users"},{"description":"Delete Users","value":"delete:users"},{"description":"Create Users","value":"create:users"},{"description":"Read Users App Metadata","value":"read:users_app_metadata"},{"description":"Update Users App Metadata","value":"update:users_app_metadata"},{"description":"Delete Users App Metadata","value":"delete:users_app_metadata"},{"description":"Create Users App Metadata","value":"create:users_app_metadata"},{"description":"Read Custom User Blocks","value":"read:user_custom_blocks"},{"description":"Create Custom User Blocks","value":"create:user_custom_blocks"},{"description":"Delete Custom User Blocks","value":"delete:user_custom_blocks"},{"description":"Create User Tickets","value":"create:user_tickets"},{"description":"Read Clients","value":"read:clients"},{"description":"Update Clients","value":"update:clients"},{"description":"Delete Clients","value":"delete:clients"},{"description":"Create Clients","value":"create:clients"},{"description":"Read Client Keys","value":"read:client_keys"},{"description":"Update Client Keys","value":"update:client_keys"},{"description":"Delete Client Keys","value":"delete:client_keys"},{"description":"Create Client Keys","value":"create:client_keys"},{"description":"Read Connections","value":"read:connections"},{"description":"Update Connections","value":"update:connections"},{"description":"Delete Connections","value":"delete:connections"},{"description":"Create Connections","value":"create:connections"},{"description":"Read Resource Servers","value":"read:resource_servers"},{"description":"Update Resource Servers","value":"update:resource_servers"},{"description":"Delete Resource Servers","value":"delete:resource_servers"},{"description":"Create Resource Servers","value":"create:resource_servers"},{"description":"Read Device Credentials","value":"read:device_credentials"},{"description":"Update Device Credentials","value":"update:device_credentials"},{"description":"Delete Device Credentials","value":"delete:device_credentials"},{"description":"Create Device Credentials","value":"create:device_credentials"},{"description":"Read Rules","value":"read:rules"},{"description":"Update Rules","value":"update:rules"},{"description":"Delete Rules","value":"delete:rules"},{"description":"Create Rules","value":"create:rules"},{"description":"Read Rules Configs","value":"read:rules_configs"},{"description":"Update Rules Configs","value":"update:rules_configs"},{"description":"Delete Rules Configs","value":"delete:rules_configs"},{"description":"Read Hooks","value":"read:hooks"},{"description":"Update Hooks","value":"update:hooks"},{"description":"Delete Hooks","value":"delete:hooks"},{"description":"Create Hooks","value":"create:hooks"},{"description":"Read Actions","value":"read:actions"},{"description":"Update Actions","value":"update:actions"},{"description":"Delete Actions","value":"delete:actions"},{"description":"Create Actions","value":"create:actions"},{"description":"Read Email Provider","value":"read:email_provider"},{"description":"Update Email Provider","value":"update:email_provider"},{"description":"Delete Email Provider","value":"delete:email_provider"},{"description":"Create Email Provider","value":"create:email_provider"},{"description":"Blacklist Tokens","value":"blacklist:tokens"},{"description":"Read Stats","value":"read:stats"},{"description":"Read Insights","value":"read:insights"},{"description":"Read Tenant Settings","value":"read:tenant_settings"},{"description":"Update Tenant Settings","value":"update:tenant_settings"},{"description":"Read Logs","value":"read:logs"},{"description":"Read logs relating to users","value":"read:logs_users"},{"description":"Read Shields","value":"read:shields"},{"description":"Create Shields","value":"create:shields"},{"description":"Update Shields","value":"update:shields"},{"description":"Delete Shields","value":"delete:shields"},{"description":"Read Anomaly Detection Blocks","value":"read:anomaly_blocks"},{"description":"Delete Anomaly Detection Blocks","value":"delete:anomaly_blocks"},{"description":"Update Triggers","value":"update:triggers"},{"description":"Read Triggers","value":"read:triggers"},{"description":"Read User Grants","value":"read:grants"},{"description":"Delete User Grants","value":"delete:grants"},{"description":"Read Guardian factors configuration","value":"read:guardian_factors"},{"description":"Update Guardian factors","value":"update:guardian_factors"},{"description":"Read Guardian enrollments","value":"read:guardian_enrollments"},{"description":"Delete Guardian enrollments","value":"delete:guardian_enrollments"},{"description":"Create enrollment tickets for Guardian","value":"create:guardian_enrollment_tickets"},{"description":"Read Users IDP tokens","value":"read:user_idp_tokens"},{"description":"Create password checking jobs","value":"create:passwords_checking_job"},{"description":"Deletes password checking job and all its resources","value":"delete:passwords_checking_job"},{"description":"Read custom domains configurations","value":"read:custom_domains"},{"description":"Delete custom domains configurations","value":"delete:custom_domains"},{"description":"Configure new custom domains","value":"create:custom_domains"},{"description":"Update custom domain configurations","value":"update:custom_domains"},{"description":"Read email templates","value":"read:email_templates"},{"description":"Create email templates","value":"create:email_templates"},{"description":"Update email templates","value":"update:email_templates"},{"description":"Read Multifactor Authentication policies","value":"read:mfa_policies"},{"description":"Update Multifactor Authentication policies","value":"update:mfa_policies"},{"description":"Read roles","value":"read:roles"},{"description":"Create roles","value":"create:roles"},{"description":"Delete roles","value":"delete:roles"},{"description":"Update roles","value":"update:roles"},{"description":"Read prompts settings","value":"read:prompts"},{"description":"Update prompts settings","value":"update:prompts"},{"description":"Read branding settings","value":"read:branding"},{"description":"Update branding settings","value":"update:branding"},{"description":"Delete branding settings","value":"delete:branding"},{"description":"Read log_streams","value":"read:log_streams"},{"description":"Create log_streams","value":"create:log_streams"},{"description":"Delete log_streams","value":"delete:log_streams"},{"description":"Update log_streams","value":"update:log_streams"},{"description":"Create signing keys","value":"create:signing_keys"},{"description":"Read signing keys","value":"read:signing_keys"},{"description":"Update signing keys","value":"update:signing_keys"},{"description":"Read entity limits","value":"read:limits"},{"description":"Update entity limits","value":"update:limits"},{"description":"Create role members","value":"create:role_members"},{"description":"Read role members","value":"read:role_members"},{"description":"Update role members","value":"delete:role_members"},{"description":"Read entitlements","value":"read:entitlements"},{"description":"Read attack protection","value":"read:attack_protection"},{"description":"Update attack protection","value":"update:attack_protection"},{"description":"Read Organizations","value":"read:organizations"},{"description":"Update Organizations","value":"update:organizations"},{"description":"Create Organizations","value":"create:organizations"},{"description":"Delete Organizations","value":"delete:organizations"},{"description":"Create organization members","value":"create:organization_members"},{"description":"Read organization members","value":"read:organization_members"},{"description":"Delete organization members","value":"delete:organization_members"},{"description":"Create organization connections","value":"create:organization_connections"},{"description":"Read organization connections","value":"read:organization_connections"},{"description":"Update organization connections","value":"update:organization_connections"},{"description":"Delete organization connections","value":"delete:organization_connections"},{"description":"Create organization member roles","value":"create:organization_member_roles"},{"description":"Read organization member roles","value":"read:organization_member_roles"},{"description":"Delete organization member roles","value":"delete:organization_member_roles"},{"description":"Create organization invitations","value":"create:organization_invitations"},{"description":"Read organization invitations","value":"read:organization_invitations"},{"description":"Delete organization invitations","value":"delete:organization_invitations"},{"description":"Read organization summary","value":"read:organizations_summary"},{"description":"Create Actions Log Sessions","value":"create:actions_log_sessions"},{"description":"Create Authentication Methods","value":"create:authentication_methods"},{"description":"Read Authentication Methods","value":"read:authentication_methods"},{"description":"Update Authentication Methods","value":"update:authentication_methods"},{"description":"Delete Authentication Methods","value":"delete:authentication_methods"}],"is_system":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 106.63625ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.16.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/112233445566777899011232 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"112233445566777899011232","name":"Auth0 Management API","identifier":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"description":"Read Client Grants","value":"read:client_grants"},{"description":"Create Client Grants","value":"create:client_grants"},{"description":"Delete Client Grants","value":"delete:client_grants"},{"description":"Update Client Grants","value":"update:client_grants"},{"description":"Read Users","value":"read:users"},{"description":"Update Users","value":"update:users"},{"description":"Delete Users","value":"delete:users"},{"description":"Create Users","value":"create:users"},{"description":"Read Users App Metadata","value":"read:users_app_metadata"},{"description":"Update Users App Metadata","value":"update:users_app_metadata"},{"description":"Delete Users App Metadata","value":"delete:users_app_metadata"},{"description":"Create Users App Metadata","value":"create:users_app_metadata"},{"description":"Read Custom User Blocks","value":"read:user_custom_blocks"},{"description":"Create Custom User Blocks","value":"create:user_custom_blocks"},{"description":"Delete Custom User Blocks","value":"delete:user_custom_blocks"},{"description":"Create User Tickets","value":"create:user_tickets"},{"description":"Read Clients","value":"read:clients"},{"description":"Update Clients","value":"update:clients"},{"description":"Delete Clients","value":"delete:clients"},{"description":"Create Clients","value":"create:clients"},{"description":"Read Client Keys","value":"read:client_keys"},{"description":"Update Client Keys","value":"update:client_keys"},{"description":"Delete Client Keys","value":"delete:client_keys"},{"description":"Create Client Keys","value":"create:client_keys"},{"description":"Read Connections","value":"read:connections"},{"description":"Update Connections","value":"update:connections"},{"description":"Delete Connections","value":"delete:connections"},{"description":"Create Connections","value":"create:connections"},{"description":"Read Resource Servers","value":"read:resource_servers"},{"description":"Update Resource Servers","value":"update:resource_servers"},{"description":"Delete Resource Servers","value":"delete:resource_servers"},{"description":"Create Resource Servers","value":"create:resource_servers"},{"description":"Read Device Credentials","value":"read:device_credentials"},{"description":"Update Device Credentials","value":"update:device_credentials"},{"description":"Delete Device Credentials","value":"delete:device_credentials"},{"description":"Create Device Credentials","value":"create:device_credentials"},{"description":"Read Rules","value":"read:rules"},{"description":"Update Rules","value":"update:rules"},{"description":"Delete Rules","value":"delete:rules"},{"description":"Create Rules","value":"create:rules"},{"description":"Read Rules Configs","value":"read:rules_configs"},{"description":"Update Rules Configs","value":"update:rules_configs"},{"description":"Delete Rules Configs","value":"delete:rules_configs"},{"description":"Read Hooks","value":"read:hooks"},{"description":"Update Hooks","value":"update:hooks"},{"description":"Delete Hooks","value":"delete:hooks"},{"description":"Create Hooks","value":"create:hooks"},{"description":"Read Actions","value":"read:actions"},{"description":"Update Actions","value":"update:actions"},{"description":"Delete Actions","value":"delete:actions"},{"description":"Create Actions","value":"create:actions"},{"description":"Read Email Provider","value":"read:email_provider"},{"description":"Update Email Provider","value":"update:email_provider"},{"description":"Delete Email Provider","value":"delete:email_provider"},{"description":"Create Email Provider","value":"create:email_provider"},{"description":"Blacklist Tokens","value":"blacklist:tokens"},{"description":"Read Stats","value":"read:stats"},{"description":"Read Insights","value":"read:insights"},{"description":"Read Tenant Settings","value":"read:tenant_settings"},{"description":"Update Tenant Settings","value":"update:tenant_settings"},{"description":"Read Logs","value":"read:logs"},{"description":"Read logs relating to users","value":"read:logs_users"},{"description":"Read Shields","value":"read:shields"},{"description":"Create Shields","value":"create:shields"},{"description":"Update Shields","value":"update:shields"},{"description":"Delete Shields","value":"delete:shields"},{"description":"Read Anomaly Detection Blocks","value":"read:anomaly_blocks"},{"description":"Delete Anomaly Detection Blocks","value":"delete:anomaly_blocks"},{"description":"Update Triggers","value":"update:triggers"},{"description":"Read Triggers","value":"read:triggers"},{"description":"Read User Grants","value":"read:grants"},{"description":"Delete User Grants","value":"delete:grants"},{"description":"Read Guardian factors configuration","value":"read:guardian_factors"},{"description":"Update Guardian factors","value":"update:guardian_factors"},{"description":"Read Guardian enrollments","value":"read:guardian_enrollments"},{"description":"Delete Guardian enrollments","value":"delete:guardian_enrollments"},{"description":"Create enrollment tickets for Guardian","value":"create:guardian_enrollment_tickets"},{"description":"Read Users IDP tokens","value":"read:user_idp_tokens"},{"description":"Create password checking jobs","value":"create:passwords_checking_job"},{"description":"Deletes password checking job and all its resources","value":"delete:passwords_checking_job"},{"description":"Read custom domains configurations","value":"read:custom_domains"},{"description":"Delete custom domains configurations","value":"delete:custom_domains"},{"description":"Configure new custom domains","value":"create:custom_domains"},{"description":"Update custom domain configurations","value":"update:custom_domains"},{"description":"Read email templates","value":"read:email_templates"},{"description":"Create email templates","value":"create:email_templates"},{"description":"Update email templates","value":"update:email_templates"},{"description":"Read Multifactor Authentication policies","value":"read:mfa_policies"},{"description":"Update Multifactor Authentication policies","value":"update:mfa_policies"},{"description":"Read roles","value":"read:roles"},{"description":"Create roles","value":"create:roles"},{"description":"Delete roles","value":"delete:roles"},{"description":"Update roles","value":"update:roles"},{"description":"Read prompts settings","value":"read:prompts"},{"description":"Update prompts settings","value":"update:prompts"},{"description":"Read branding settings","value":"read:branding"},{"description":"Update branding settings","value":"update:branding"},{"description":"Delete branding settings","value":"delete:branding"},{"description":"Read log_streams","value":"read:log_streams"},{"description":"Create log_streams","value":"create:log_streams"},{"description":"Delete log_streams","value":"delete:log_streams"},{"description":"Update log_streams","value":"update:log_streams"},{"description":"Create signing keys","value":"create:signing_keys"},{"description":"Read signing keys","value":"read:signing_keys"},{"description":"Update signing keys","value":"update:signing_keys"},{"description":"Read entity limits","value":"read:limits"},{"description":"Update entity limits","value":"update:limits"},{"description":"Create role members","value":"create:role_members"},{"description":"Read role members","value":"read:role_members"},{"description":"Update role members","value":"delete:role_members"},{"description":"Read entitlements","value":"read:entitlements"},{"description":"Read attack protection","value":"read:attack_protection"},{"description":"Update attack protection","value":"update:attack_protection"},{"description":"Read Organizations","value":"read:organizations"},{"description":"Update Organizations","value":"update:organizations"},{"description":"Create Organizations","value":"create:organizations"},{"description":"Delete Organizations","value":"delete:organizations"},{"description":"Create organization members","value":"create:organization_members"},{"description":"Read organization members","value":"read:organization_members"},{"description":"Delete organization members","value":"delete:organization_members"},{"description":"Create organization connections","value":"create:organization_connections"},{"description":"Read organization connections","value":"read:organization_connections"},{"description":"Update organization connections","value":"update:organization_connections"},{"description":"Delete organization connections","value":"delete:organization_connections"},{"description":"Create organization member roles","value":"create:organization_member_roles"},{"description":"Read organization member roles","value":"read:organization_member_roles"},{"description":"Delete organization member roles","value":"delete:organization_member_roles"},{"description":"Create organization invitations","value":"create:organization_invitations"},{"description":"Read organization invitations","value":"read:organization_invitations"},{"description":"Delete organization invitations","value":"delete:organization_invitations"},{"description":"Read organization summary","value":"read:organizations_summary"},{"description":"Create Actions Log Sessions","value":"create:actions_log_sessions"},{"description":"Create Authentication Methods","value":"create:authentication_methods"},{"description":"Read Authentication Methods","value":"read:authentication_methods"},{"description":"Update Authentication Methods","value":"update:authentication_methods"},{"description":"Delete Authentication Methods","value":"delete:authentication_methods"}],"is_system":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 115.995875ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.16.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/112233445566777899011232 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"112233445566777899011232","name":"Auth0 Management API","identifier":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"description":"Read Client Grants","value":"read:client_grants"},{"description":"Create Client Grants","value":"create:client_grants"},{"description":"Delete Client Grants","value":"delete:client_grants"},{"description":"Update Client Grants","value":"update:client_grants"},{"description":"Read Users","value":"read:users"},{"description":"Update Users","value":"update:users"},{"description":"Delete Users","value":"delete:users"},{"description":"Create Users","value":"create:users"},{"description":"Read Users App Metadata","value":"read:users_app_metadata"},{"description":"Update Users App Metadata","value":"update:users_app_metadata"},{"description":"Delete Users App Metadata","value":"delete:users_app_metadata"},{"description":"Create Users App Metadata","value":"create:users_app_metadata"},{"description":"Read Custom User Blocks","value":"read:user_custom_blocks"},{"description":"Create Custom User Blocks","value":"create:user_custom_blocks"},{"description":"Delete Custom User Blocks","value":"delete:user_custom_blocks"},{"description":"Create User Tickets","value":"create:user_tickets"},{"description":"Read Clients","value":"read:clients"},{"description":"Update Clients","value":"update:clients"},{"description":"Delete Clients","value":"delete:clients"},{"description":"Create Clients","value":"create:clients"},{"description":"Read Client Keys","value":"read:client_keys"},{"description":"Update Client Keys","value":"update:client_keys"},{"description":"Delete Client Keys","value":"delete:client_keys"},{"description":"Create Client Keys","value":"create:client_keys"},{"description":"Read Connections","value":"read:connections"},{"description":"Update Connections","value":"update:connections"},{"description":"Delete Connections","value":"delete:connections"},{"description":"Create Connections","value":"create:connections"},{"description":"Read Resource Servers","value":"read:resource_servers"},{"description":"Update Resource Servers","value":"update:resource_servers"},{"description":"Delete Resource Servers","value":"delete:resource_servers"},{"description":"Create Resource Servers","value":"create:resource_servers"},{"description":"Read Device Credentials","value":"read:device_credentials"},{"description":"Update Device Credentials","value":"update:device_credentials"},{"description":"Delete Device Credentials","value":"delete:device_credentials"},{"description":"Create Device Credentials","value":"create:device_credentials"},{"description":"Read Rules","value":"read:rules"},{"description":"Update Rules","value":"update:rules"},{"description":"Delete Rules","value":"delete:rules"},{"description":"Create Rules","value":"create:rules"},{"description":"Read Rules Configs","value":"read:rules_configs"},{"description":"Update Rules Configs","value":"update:rules_configs"},{"description":"Delete Rules Configs","value":"delete:rules_configs"},{"description":"Read Hooks","value":"read:hooks"},{"description":"Update Hooks","value":"update:hooks"},{"description":"Delete Hooks","value":"delete:hooks"},{"description":"Create Hooks","value":"create:hooks"},{"description":"Read Actions","value":"read:actions"},{"description":"Update Actions","value":"update:actions"},{"description":"Delete Actions","value":"delete:actions"},{"description":"Create Actions","value":"create:actions"},{"description":"Read Email Provider","value":"read:email_provider"},{"description":"Update Email Provider","value":"update:email_provider"},{"description":"Delete Email Provider","value":"delete:email_provider"},{"description":"Create Email Provider","value":"create:email_provider"},{"description":"Blacklist Tokens","value":"blacklist:tokens"},{"description":"Read Stats","value":"read:stats"},{"description":"Read Insights","value":"read:insights"},{"description":"Read Tenant Settings","value":"read:tenant_settings"},{"description":"Update Tenant Settings","value":"update:tenant_settings"},{"description":"Read Logs","value":"read:logs"},{"description":"Read logs relating to users","value":"read:logs_users"},{"description":"Read Shields","value":"read:shields"},{"description":"Create Shields","value":"create:shields"},{"description":"Update Shields","value":"update:shields"},{"description":"Delete Shields","value":"delete:shields"},{"description":"Read Anomaly Detection Blocks","value":"read:anomaly_blocks"},{"description":"Delete Anomaly Detection Blocks","value":"delete:anomaly_blocks"},{"description":"Update Triggers","value":"update:triggers"},{"description":"Read Triggers","value":"read:triggers"},{"description":"Read User Grants","value":"read:grants"},{"description":"Delete User Grants","value":"delete:grants"},{"description":"Read Guardian factors configuration","value":"read:guardian_factors"},{"description":"Update Guardian factors","value":"update:guardian_factors"},{"description":"Read Guardian enrollments","value":"read:guardian_enrollments"},{"description":"Delete Guardian enrollments","value":"delete:guardian_enrollments"},{"description":"Create enrollment tickets for Guardian","value":"create:guardian_enrollment_tickets"},{"description":"Read Users IDP tokens","value":"read:user_idp_tokens"},{"description":"Create password checking jobs","value":"create:passwords_checking_job"},{"description":"Deletes password checking job and all its resources","value":"delete:passwords_checking_job"},{"description":"Read custom domains configurations","value":"read:custom_domains"},{"description":"Delete custom domains configurations","value":"delete:custom_domains"},{"description":"Configure new custom domains","value":"create:custom_domains"},{"description":"Update custom domain configurations","value":"update:custom_domains"},{"description":"Read email templates","value":"read:email_templates"},{"description":"Create email templates","value":"create:email_templates"},{"description":"Update email templates","value":"update:email_templates"},{"description":"Read Multifactor Authentication policies","value":"read:mfa_policies"},{"description":"Update Multifactor Authentication policies","value":"update:mfa_policies"},{"description":"Read roles","value":"read:roles"},{"description":"Create roles","value":"create:roles"},{"description":"Delete roles","value":"delete:roles"},{"description":"Update roles","value":"update:roles"},{"description":"Read prompts settings","value":"read:prompts"},{"description":"Update prompts settings","value":"update:prompts"},{"description":"Read branding settings","value":"read:branding"},{"description":"Update branding settings","value":"update:branding"},{"description":"Delete branding settings","value":"delete:branding"},{"description":"Read log_streams","value":"read:log_streams"},{"description":"Create log_streams","value":"create:log_streams"},{"description":"Delete log_streams","value":"delete:log_streams"},{"description":"Update log_streams","value":"update:log_streams"},{"description":"Create signing keys","value":"create:signing_keys"},{"description":"Read signing keys","value":"read:signing_keys"},{"description":"Update signing keys","value":"update:signing_keys"},{"description":"Read entity limits","value":"read:limits"},{"description":"Update entity limits","value":"update:limits"},{"description":"Create role members","value":"create:role_members"},{"description":"Read role members","value":"read:role_members"},{"description":"Update role members","value":"delete:role_members"},{"description":"Read entitlements","value":"read:entitlements"},{"description":"Read attack protection","value":"read:attack_protection"},{"description":"Update attack protection","value":"update:attack_protection"},{"description":"Read Organizations","value":"read:organizations"},{"description":"Update Organizations","value":"update:organizations"},{"description":"Create Organizations","value":"create:organizations"},{"description":"Delete Organizations","value":"delete:organizations"},{"description":"Create organization members","value":"create:organization_members"},{"description":"Read organization members","value":"read:organization_members"},{"description":"Delete organization members","value":"delete:organization_members"},{"description":"Create organization connections","value":"create:organization_connections"},{"description":"Read organization connections","value":"read:organization_connections"},{"description":"Update organization connections","value":"update:organization_connections"},{"description":"Delete organization connections","value":"delete:organization_connections"},{"description":"Create organization member roles","value":"create:organization_member_roles"},{"description":"Read organization member roles","value":"read:organization_member_roles"},{"description":"Delete organization member roles","value":"delete:organization_member_roles"},{"description":"Create organization invitations","value":"create:organization_invitations"},{"description":"Read organization invitations","value":"read:organization_invitations"},{"description":"Delete organization invitations","value":"delete:organization_invitations"},{"description":"Read organization summary","value":"read:organizations_summary"},{"description":"Create Actions Log Sessions","value":"create:actions_log_sessions"},{"description":"Create Authentication Methods","value":"create:authentication_methods"},{"description":"Read Authentication Methods","value":"read:authentication_methods"},{"description":"Update Authentication Methods","value":"update:authentication_methods"},{"description":"Delete Authentication Methods","value":"delete:authentication_methods"}],"is_system":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 106.099041ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.16.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/112233445566777899011232 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"112233445566777899011232","name":"Auth0 Management API","identifier":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"description":"Read Client Grants","value":"read:client_grants"},{"description":"Create Client Grants","value":"create:client_grants"},{"description":"Delete Client Grants","value":"delete:client_grants"},{"description":"Update Client Grants","value":"update:client_grants"},{"description":"Read Users","value":"read:users"},{"description":"Update Users","value":"update:users"},{"description":"Delete Users","value":"delete:users"},{"description":"Create Users","value":"create:users"},{"description":"Read Users App Metadata","value":"read:users_app_metadata"},{"description":"Update Users App Metadata","value":"update:users_app_metadata"},{"description":"Delete Users App Metadata","value":"delete:users_app_metadata"},{"description":"Create Users App Metadata","value":"create:users_app_metadata"},{"description":"Read Custom User Blocks","value":"read:user_custom_blocks"},{"description":"Create Custom User Blocks","value":"create:user_custom_blocks"},{"description":"Delete Custom User Blocks","value":"delete:user_custom_blocks"},{"description":"Create User Tickets","value":"create:user_tickets"},{"description":"Read Clients","value":"read:clients"},{"description":"Update Clients","value":"update:clients"},{"description":"Delete Clients","value":"delete:clients"},{"description":"Create Clients","value":"create:clients"},{"description":"Read Client Keys","value":"read:client_keys"},{"description":"Update Client Keys","value":"update:client_keys"},{"description":"Delete Client Keys","value":"delete:client_keys"},{"description":"Create Client Keys","value":"create:client_keys"},{"description":"Read Connections","value":"read:connections"},{"description":"Update Connections","value":"update:connections"},{"description":"Delete Connections","value":"delete:connections"},{"description":"Create Connections","value":"create:connections"},{"description":"Read Resource Servers","value":"read:resource_servers"},{"description":"Update Resource Servers","value":"update:resource_servers"},{"description":"Delete Resource Servers","value":"delete:resource_servers"},{"description":"Create Resource Servers","value":"create:resource_servers"},{"description":"Read Device Credentials","value":"read:device_credentials"},{"description":"Update Device Credentials","value":"update:device_credentials"},{"description":"Delete Device Credentials","value":"delete:device_credentials"},{"description":"Create Device Credentials","value":"create:device_credentials"},{"description":"Read Rules","value":"read:rules"},{"description":"Update Rules","value":"update:rules"},{"description":"Delete Rules","value":"delete:rules"},{"description":"Create Rules","value":"create:rules"},{"description":"Read Rules Configs","value":"read:rules_configs"},{"description":"Update Rules Configs","value":"update:rules_configs"},{"description":"Delete Rules Configs","value":"delete:rules_configs"},{"description":"Read Hooks","value":"read:hooks"},{"description":"Update Hooks","value":"update:hooks"},{"description":"Delete Hooks","value":"delete:hooks"},{"description":"Create Hooks","value":"create:hooks"},{"description":"Read Actions","value":"read:actions"},{"description":"Update Actions","value":"update:actions"},{"description":"Delete Actions","value":"delete:actions"},{"description":"Create Actions","value":"create:actions"},{"description":"Read Email Provider","value":"read:email_provider"},{"description":"Update Email Provider","value":"update:email_provider"},{"description":"Delete Email Provider","value":"delete:email_provider"},{"description":"Create Email Provider","value":"create:email_provider"},{"description":"Blacklist Tokens","value":"blacklist:tokens"},{"description":"Read Stats","value":"read:stats"},{"description":"Read Insights","value":"read:insights"},{"description":"Read Tenant Settings","value":"read:tenant_settings"},{"description":"Update Tenant Settings","value":"update:tenant_settings"},{"description":"Read Logs","value":"read:logs"},{"description":"Read logs relating to users","value":"read:logs_users"},{"description":"Read Shields","value":"read:shields"},{"description":"Create Shields","value":"create:shields"},{"description":"Update Shields","value":"update:shields"},{"description":"Delete Shields","value":"delete:shields"},{"description":"Read Anomaly Detection Blocks","value":"read:anomaly_blocks"},{"description":"Delete Anomaly Detection Blocks","value":"delete:anomaly_blocks"},{"description":"Update Triggers","value":"update:triggers"},{"description":"Read Triggers","value":"read:triggers"},{"description":"Read User Grants","value":"read:grants"},{"description":"Delete User Grants","value":"delete:grants"},{"description":"Read Guardian factors configuration","value":"read:guardian_factors"},{"description":"Update Guardian factors","value":"update:guardian_factors"},{"description":"Read Guardian enrollments","value":"read:guardian_enrollments"},{"description":"Delete Guardian enrollments","value":"delete:guardian_enrollments"},{"description":"Create enrollment tickets for Guardian","value":"create:guardian_enrollment_tickets"},{"description":"Read Users IDP tokens","value":"read:user_idp_tokens"},{"description":"Create password checking jobs","value":"create:passwords_checking_job"},{"description":"Deletes password checking job and all its resources","value":"delete:passwords_checking_job"},{"description":"Read custom domains configurations","value":"read:custom_domains"},{"description":"Delete custom domains configurations","value":"delete:custom_domains"},{"description":"Configure new custom domains","value":"create:custom_domains"},{"description":"Update custom domain configurations","value":"update:custom_domains"},{"description":"Read email templates","value":"read:email_templates"},{"description":"Create email templates","value":"create:email_templates"},{"description":"Update email templates","value":"update:email_templates"},{"description":"Read Multifactor Authentication policies","value":"read:mfa_policies"},{"description":"Update Multifactor Authentication policies","value":"update:mfa_policies"},{"description":"Read roles","value":"read:roles"},{"description":"Create roles","value":"create:roles"},{"description":"Delete roles","value":"delete:roles"},{"description":"Update roles","value":"update:roles"},{"description":"Read prompts settings","value":"read:prompts"},{"description":"Update prompts settings","value":"update:prompts"},{"description":"Read branding settings","value":"read:branding"},{"description":"Update branding settings","value":"update:branding"},{"description":"Delete branding settings","value":"delete:branding"},{"description":"Read log_streams","value":"read:log_streams"},{"description":"Create log_streams","value":"create:log_streams"},{"description":"Delete log_streams","value":"delete:log_streams"},{"description":"Update log_streams","value":"update:log_streams"},{"description":"Create signing keys","value":"create:signing_keys"},{"description":"Read signing keys","value":"read:signing_keys"},{"description":"Update signing keys","value":"update:signing_keys"},{"description":"Read entity limits","value":"read:limits"},{"description":"Update entity limits","value":"update:limits"},{"description":"Create role members","value":"create:role_members"},{"description":"Read role members","value":"read:role_members"},{"description":"Update role members","value":"delete:role_members"},{"description":"Read entitlements","value":"read:entitlements"},{"description":"Read attack protection","value":"read:attack_protection"},{"description":"Update attack protection","value":"update:attack_protection"},{"description":"Read Organizations","value":"read:organizations"},{"description":"Update Organizations","value":"update:organizations"},{"description":"Create Organizations","value":"create:organizations"},{"description":"Delete Organizations","value":"delete:organizations"},{"description":"Create organization members","value":"create:organization_members"},{"description":"Read organization members","value":"read:organization_members"},{"description":"Delete organization members","value":"delete:organization_members"},{"description":"Create organization connections","value":"create:organization_connections"},{"description":"Read organization connections","value":"read:organization_connections"},{"description":"Update organization connections","value":"update:organization_connections"},{"description":"Delete organization connections","value":"delete:organization_connections"},{"description":"Create organization member roles","value":"create:organization_member_roles"},{"description":"Read organization member roles","value":"read:organization_member_roles"},{"description":"Delete organization member roles","value":"delete:organization_member_roles"},{"description":"Create organization invitations","value":"create:organization_invitations"},{"description":"Read organization invitations","value":"read:organization_invitations"},{"description":"Delete organization invitations","value":"delete:organization_invitations"},{"description":"Read organization summary","value":"read:organizations_summary"},{"description":"Create Actions Log Sessions","value":"create:actions_log_sessions"},{"description":"Create Authentication Methods","value":"create:authentication_methods"},{"description":"Read Authentication Methods","value":"read:authentication_methods"},{"description":"Update Authentication Methods","value":"update:authentication_methods"},{"description":"Delete Authentication Methods","value":"delete:authentication_methods"}],"is_system":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 220.166958ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.16.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/112233445566777899011232 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"112233445566777899011232","name":"Auth0 Management API","identifier":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"description":"Read Client Grants","value":"read:client_grants"},{"description":"Create Client Grants","value":"create:client_grants"},{"description":"Delete Client Grants","value":"delete:client_grants"},{"description":"Update Client Grants","value":"update:client_grants"},{"description":"Read Users","value":"read:users"},{"description":"Update Users","value":"update:users"},{"description":"Delete Users","value":"delete:users"},{"description":"Create Users","value":"create:users"},{"description":"Read Users App Metadata","value":"read:users_app_metadata"},{"description":"Update Users App Metadata","value":"update:users_app_metadata"},{"description":"Delete Users App Metadata","value":"delete:users_app_metadata"},{"description":"Create Users App Metadata","value":"create:users_app_metadata"},{"description":"Read Custom User Blocks","value":"read:user_custom_blocks"},{"description":"Create Custom User Blocks","value":"create:user_custom_blocks"},{"description":"Delete Custom User Blocks","value":"delete:user_custom_blocks"},{"description":"Create User Tickets","value":"create:user_tickets"},{"description":"Read Clients","value":"read:clients"},{"description":"Update Clients","value":"update:clients"},{"description":"Delete Clients","value":"delete:clients"},{"description":"Create Clients","value":"create:clients"},{"description":"Read Client Keys","value":"read:client_keys"},{"description":"Update Client Keys","value":"update:client_keys"},{"description":"Delete Client Keys","value":"delete:client_keys"},{"description":"Create Client Keys","value":"create:client_keys"},{"description":"Read Connections","value":"read:connections"},{"description":"Update Connections","value":"update:connections"},{"description":"Delete Connections","value":"delete:connections"},{"description":"Create Connections","value":"create:connections"},{"description":"Read Resource Servers","value":"read:resource_servers"},{"description":"Update Resource Servers","value":"update:resource_servers"},{"description":"Delete Resource Servers","value":"delete:resource_servers"},{"description":"Create Resource Servers","value":"create:resource_servers"},{"description":"Read Device Credentials","value":"read:device_credentials"},{"description":"Update Device Credentials","value":"update:device_credentials"},{"description":"Delete Device Credentials","value":"delete:device_credentials"},{"description":"Create Device Credentials","value":"create:device_credentials"},{"description":"Read Rules","value":"read:rules"},{"description":"Update Rules","value":"update:rules"},{"description":"Delete Rules","value":"delete:rules"},{"description":"Create Rules","value":"create:rules"},{"description":"Read Rules Configs","value":"read:rules_configs"},{"description":"Update Rules Configs","value":"update:rules_configs"},{"description":"Delete Rules Configs","value":"delete:rules_configs"},{"description":"Read Hooks","value":"read:hooks"},{"description":"Update Hooks","value":"update:hooks"},{"description":"Delete Hooks","value":"delete:hooks"},{"description":"Create Hooks","value":"create:hooks"},{"description":"Read Actions","value":"read:actions"},{"description":"Update Actions","value":"update:actions"},{"description":"Delete Actions","value":"delete:actions"},{"description":"Create Actions","value":"create:actions"},{"description":"Read Email Provider","value":"read:email_provider"},{"description":"Update Email Provider","value":"update:email_provider"},{"description":"Delete Email Provider","value":"delete:email_provider"},{"description":"Create Email Provider","value":"create:email_provider"},{"description":"Blacklist Tokens","value":"blacklist:tokens"},{"description":"Read Stats","value":"read:stats"},{"description":"Read Insights","value":"read:insights"},{"description":"Read Tenant Settings","value":"read:tenant_settings"},{"description":"Update Tenant Settings","value":"update:tenant_settings"},{"description":"Read Logs","value":"read:logs"},{"description":"Read logs relating to users","value":"read:logs_users"},{"description":"Read Shields","value":"read:shields"},{"description":"Create Shields","value":"create:shields"},{"description":"Update Shields","value":"update:shields"},{"description":"Delete Shields","value":"delete:shields"},{"description":"Read Anomaly Detection Blocks","value":"read:anomaly_blocks"},{"description":"Delete Anomaly Detection Blocks","value":"delete:anomaly_blocks"},{"description":"Update Triggers","value":"update:triggers"},{"description":"Read Triggers","value":"read:triggers"},{"description":"Read User Grants","value":"read:grants"},{"description":"Delete User Grants","value":"delete:grants"},{"description":"Read Guardian factors configuration","value":"read:guardian_factors"},{"description":"Update Guardian factors","value":"update:guardian_factors"},{"description":"Read Guardian enrollments","value":"read:guardian_enrollments"},{"description":"Delete Guardian enrollments","value":"delete:guardian_enrollments"},{"description":"Create enrollment tickets for Guardian","value":"create:guardian_enrollment_tickets"},{"description":"Read Users IDP tokens","value":"read:user_idp_tokens"},{"description":"Create password checking jobs","value":"create:passwords_checking_job"},{"description":"Deletes password checking job and all its resources","value":"delete:passwords_checking_job"},{"description":"Read custom domains configurations","value":"read:custom_domains"},{"description":"Delete custom domains configurations","value":"delete:custom_domains"},{"description":"Configure new custom domains","value":"create:custom_domains"},{"description":"Update custom domain configurations","value":"update:custom_domains"},{"description":"Read email templates","value":"read:email_templates"},{"description":"Create email templates","value":"create:email_templates"},{"description":"Update email templates","value":"update:email_templates"},{"description":"Read Multifactor Authentication policies","value":"read:mfa_policies"},{"description":"Update Multifactor Authentication policies","value":"update:mfa_policies"},{"description":"Read roles","value":"read:roles"},{"description":"Create roles","value":"create:roles"},{"description":"Delete roles","value":"delete:roles"},{"description":"Update roles","value":"update:roles"},{"description":"Read prompts settings","value":"read:prompts"},{"description":"Update prompts settings","value":"update:prompts"},{"description":"Read branding settings","value":"read:branding"},{"description":"Update branding settings","value":"update:branding"},{"description":"Delete branding settings","value":"delete:branding"},{"description":"Read log_streams","value":"read:log_streams"},{"description":"Create log_streams","value":"create:log_streams"},{"description":"Delete log_streams","value":"delete:log_streams"},{"description":"Update log_streams","value":"update:log_streams"},{"description":"Create signing keys","value":"create:signing_keys"},{"description":"Read signing keys","value":"read:signing_keys"},{"description":"Update signing keys","value":"update:signing_keys"},{"description":"Read entity limits","value":"read:limits"},{"description":"Update entity limits","value":"update:limits"},{"description":"Create role members","value":"create:role_members"},{"description":"Read role members","value":"read:role_members"},{"description":"Update role members","value":"delete:role_members"},{"description":"Read entitlements","value":"read:entitlements"},{"description":"Read attack protection","value":"read:attack_protection"},{"description":"Update attack protection","value":"update:attack_protection"},{"description":"Read Organizations","value":"read:organizations"},{"description":"Update Organizations","value":"update:organizations"},{"description":"Create Organizations","value":"create:organizations"},{"description":"Delete Organizations","value":"delete:organizations"},{"description":"Create organization members","value":"create:organization_members"},{"description":"Read organization members","value":"read:organization_members"},{"description":"Delete organization members","value":"delete:organization_members"},{"description":"Create organization connections","value":"create:organization_connections"},{"description":"Read organization connections","value":"read:organization_connections"},{"description":"Update organization connections","value":"update:organization_connections"},{"description":"Delete organization connections","value":"delete:organization_connections"},{"description":"Create organization member roles","value":"create:organization_member_roles"},{"description":"Read organization member roles","value":"read:organization_member_roles"},{"description":"Delete organization member roles","value":"delete:organization_member_roles"},{"description":"Create organization invitations","value":"create:organization_invitations"},{"description":"Read organization invitations","value":"read:organization_invitations"},{"description":"Delete organization invitations","value":"delete:organization_invitations"},{"description":"Read organization summary","value":"read:organizations_summary"},{"description":"Create Actions Log Sessions","value":"create:actions_log_sessions"},{"description":"Create Authentication Methods","value":"create:authentication_methods"},{"description":"Read Authentication Methods","value":"read:authentication_methods"},{"description":"Update Authentication Methods","value":"update:authentication_methods"},{"description":"Delete Authentication Methods","value":"delete:authentication_methods"}],"is_system":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 90.319167ms