diff --git a/docs/data-sources/user.md b/docs/data-sources/user.md index de0d4382b..bfe6ab284 100644 --- a/docs/data-sources/user.md +++ b/docs/data-sources/user.md @@ -1,12 +1,12 @@ --- page_title: "Data Source: auth0_user" description: |- - Data source to retrieve a specific Auth0 user by user_id. + Data source to retrieve a specific Auth0 user by user_id or by lucene query. If filtered by Lucene Query, it should include sufficient filters to retrieve a unique user. --- # Data Source: auth0_user -Data source to retrieve a specific Auth0 user by `user_id`. +Data source to retrieve a specific Auth0 user by `user_id` or by `lucene query`. If filtered by Lucene Query, it should include sufficient filters to retrieve a unique user. ## Example Usage @@ -15,13 +15,24 @@ Data source to retrieve a specific Auth0 user by `user_id`. data "auth0_user" "my_user" { user_id = "auth0|34fdr23fdsfdfsf" } + +# An Auth0 User loaded through Lucene query. +data "auth0_user" "my_user" { + query = "email:testemail@gmail.com" +} + +# An Auth0 User loaded through Lucene query. +data "auth0_user" "my_user" { + query = "username:johndoe" +} ``` ## Schema -### Required +### Optional +- `query` (String) Lucene Query for retrieving a user. - `user_id` (String) ID of the user. ### Read-Only diff --git a/examples/data-sources/auth0_user/data-source.tf b/examples/data-sources/auth0_user/data-source.tf index 9498a1bf6..7785687f1 100644 --- a/examples/data-sources/auth0_user/data-source.tf +++ b/examples/data-sources/auth0_user/data-source.tf @@ -2,3 +2,13 @@ data "auth0_user" "my_user" { user_id = "auth0|34fdr23fdsfdfsf" } + +# An Auth0 User loaded through Lucene query. +data "auth0_user" "my_user" { + query = "email:testemail@gmail.com" +} + +# An Auth0 User loaded through Lucene query. +data "auth0_user" "my_user" { + query = "username:johndoe" +} diff --git a/internal/auth0/user/data_source.go b/internal/auth0/user/data_source.go index 4b0b977ba..6f8ae5f03 100644 --- a/internal/auth0/user/data_source.go +++ b/internal/auth0/user/data_source.go @@ -15,8 +15,9 @@ import ( func NewDataSource() *schema.Resource { return &schema.Resource{ ReadContext: readUserForDataSource, - Description: "Data source to retrieve a specific Auth0 user by `user_id`.", - Schema: dataSourceSchema(), + Description: "Data source to retrieve a specific Auth0 user by `user_id` or by `lucene query`. " + + "If filtered by Lucene Query, it should include sufficient filters to retrieve a unique user.", + Schema: dataSourceSchema(), } } @@ -24,9 +25,17 @@ func dataSourceSchema() map[string]*schema.Schema { dataSourceSchema := internalSchema.TransformResourceToDataSource(internalSchema.Clone(NewResource().Schema)) dataSourceSchema["user_id"] = &schema.Schema{ - Type: schema.TypeString, - Required: true, - Description: "ID of the user.", + Type: schema.TypeString, + Optional: true, + Description: "ID of the user.", + AtLeastOneOf: []string{"user_id", "query"}, + } + + dataSourceSchema["query"] = &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "Lucene Query for retrieving a user.", + AtLeastOneOf: []string{"user_id", "query"}, } dataSourceSchema["permissions"] = &schema.Schema{ @@ -73,16 +82,39 @@ func dataSourceSchema() map[string]*schema.Schema { func readUserForDataSource(ctx context.Context, data *schema.ResourceData, meta interface{}) diag.Diagnostics { api := meta.(*config.Config).GetAPI() + var user *management.User userID := data.Get("user_id").(string) + if userID != "" { + u, err := api.User.Read(ctx, userID) + if err != nil { + return diag.FromErr(err) + } + user = u + data.SetId(user.GetID()) + } else { + query := data.Get("query").(string) + users, err := api.User.List(ctx, management.Parameter("q", query)) + if err != nil { + return diag.FromErr(err) + } - user, err := api.User.Read(ctx, userID) - if err != nil { - return diag.FromErr(err) + switch users.Length { + case 0: + return diag.Errorf("No users found. Note: if a user was just created/deleted, it takes some time for it to be indexed.") + case 1: + // The data-source retrieves the details about a user along with roles and permissions. + // The roles and permissions are slices. + // Hence, it is important that the search bottoms out to a single user. + // If multiple users are retrieved via Lucene Query, we prompt the user to add further filters. + user = users.Users[0] + data.SetId(users.Users[0].GetID()) + default: + return diag.Errorf("Further improve the query to retrieve a single user from the query") + } } - data.SetId(user.GetID()) - + // Populate Roles for the retrieved User. var roles []*management.Role var rolesPage int for { @@ -100,6 +132,7 @@ func readUserForDataSource(ctx context.Context, data *schema.ResourceData, meta rolesPage++ } + // Populate Permissions for the retrieved User. var permissions []*management.Permission var permissionsPage int for { diff --git a/internal/auth0/user/data_source_test.go b/internal/auth0/user/data_source_test.go index 748fb858e..ee09cb941 100644 --- a/internal/auth0/user/data_source_test.go +++ b/internal/auth0/user/data_source_test.go @@ -17,7 +17,7 @@ data "auth0_user" "user" { } ` -const testAccDataSourceUser = ` +const testAccDataSourceUserTemplate = ` resource "auth0_resource_server" "resource_server" { name = "Acceptance Test - {{.testName}}" identifier = "https://uat.api.terraform-provider-auth0.com/{{.testName}}" @@ -97,12 +97,26 @@ resource "auth0_user_roles" "user_roles" { user_id = auth0_user.user.id roles = [ auth0_role.owner.id, auth0_role.admin.id ] +}` + +const testAccDataSourceUserWithID = testAccDataSourceUserTemplate + ` +data "auth0_user" "test" { + depends_on = [ auth0_user_roles.user_roles ] + user_id = auth0_user.user.id } +` +const testAccDataSourceUserWithQueryUsername = testAccDataSourceUserTemplate + ` data "auth0_user" "test" { depends_on = [ auth0_user_roles.user_roles ] + query = "username:{{.testName}}" +} +` - user_id = auth0_user.user.id +const testAccDataSourceUserWithQueryEmail = testAccDataSourceUserTemplate + ` +data "auth0_user" "test" { + depends_on = [ auth0_user_roles.user_roles ] + query = "email:{{.testName}}@acceptance.test.com" } ` @@ -116,7 +130,43 @@ func TestAccDataSourceUser(t *testing.T) { ExpectError: regexp.MustCompile(`Error: 404 Not Found: The user does not exist.`), }, { - Config: acctest.ParseTestName(testAccDataSourceUser, testName), + Config: acctest.ParseTestName(testAccDataSourceUserWithID, testName), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("data.auth0_user.test", "email", fmt.Sprintf("%s@acceptance.test.com", testName)), + resource.TestCheckResourceAttr("data.auth0_user.test", "user_id", fmt.Sprintf("auth0|%s", testName)), + resource.TestCheckResourceAttr("data.auth0_user.test", "username", testName), + resource.TestCheckResourceAttr("data.auth0_user.test", "email", fmt.Sprintf("%s@acceptance.test.com", testName)), + resource.TestCheckResourceAttr("data.auth0_user.test", "name", "Firstname Lastname"), + resource.TestCheckResourceAttr("data.auth0_user.test", "given_name", "Firstname"), + resource.TestCheckResourceAttr("data.auth0_user.test", "family_name", "Lastname"), + resource.TestCheckResourceAttr("data.auth0_user.test", "nickname", testName), + resource.TestCheckResourceAttr("data.auth0_user.test", "picture", "https://www.example.com/picture.jpg"), + resource.TestCheckResourceAttr("data.auth0_user.test", "roles.#", "2"), + resource.TestCheckResourceAttr("data.auth0_user.test", "permissions.#", "2"), + resource.TestCheckResourceAttr("data.auth0_user.test", "user_metadata", `{"baz":"qux","foo":"bar"}`), + resource.TestCheckResourceAttr("data.auth0_user.test", "app_metadata", `{"baz":"qux","foo":"bar"}`), + ), + }, + { + Config: acctest.ParseTestName(testAccDataSourceUserWithQueryUsername, testName), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("data.auth0_user.test", "email", fmt.Sprintf("%s@acceptance.test.com", testName)), + resource.TestCheckResourceAttr("data.auth0_user.test", "user_id", fmt.Sprintf("auth0|%s", testName)), + resource.TestCheckResourceAttr("data.auth0_user.test", "username", testName), + resource.TestCheckResourceAttr("data.auth0_user.test", "email", fmt.Sprintf("%s@acceptance.test.com", testName)), + resource.TestCheckResourceAttr("data.auth0_user.test", "name", "Firstname Lastname"), + resource.TestCheckResourceAttr("data.auth0_user.test", "given_name", "Firstname"), + resource.TestCheckResourceAttr("data.auth0_user.test", "family_name", "Lastname"), + resource.TestCheckResourceAttr("data.auth0_user.test", "nickname", testName), + resource.TestCheckResourceAttr("data.auth0_user.test", "picture", "https://www.example.com/picture.jpg"), + resource.TestCheckResourceAttr("data.auth0_user.test", "roles.#", "2"), + resource.TestCheckResourceAttr("data.auth0_user.test", "permissions.#", "2"), + resource.TestCheckResourceAttr("data.auth0_user.test", "user_metadata", `{"baz":"qux","foo":"bar"}`), + resource.TestCheckResourceAttr("data.auth0_user.test", "app_metadata", `{"baz":"qux","foo":"bar"}`), + ), + }, + { + Config: acctest.ParseTestName(testAccDataSourceUserWithQueryEmail, testName), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("data.auth0_user.test", "email", fmt.Sprintf("%s@acceptance.test.com", testName)), resource.TestCheckResourceAttr("data.auth0_user.test", "user_id", fmt.Sprintf("auth0|%s", testName)), diff --git a/test/data/recordings/TestAccDataSourceUser.yaml b/test/data/recordings/TestAccDataSourceUser.yaml index a758491db..cc824b7bd 100644 --- a/test/data/recordings/TestAccDataSourceUser.yaml +++ b/test/data/recordings/TestAccDataSourceUser.yaml @@ -18,7 +18,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Cthis-user-id-does-not-exist method: GET response: @@ -35,7 +35,7 @@ interactions: - application/json; charset=utf-8 status: 404 Not Found code: 404 - duration: 214.967208ms + duration: 354.549542ms - id: 1 request: proto: HTTP/1.1 @@ -54,7 +54,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers method: POST response: @@ -65,13 +65,13 @@ interactions: trailer: {} content_length: 324 uncompressed: false - body: '{"id":"66e0a35120b2fc32cb4d0051","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256"}' + body: '{"id":"679c1c2e7a696722a188f84b","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256"}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 195.32575ms + duration: 357.538375ms - id: 2 request: proto: HTTP/1.1 @@ -90,8 +90,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/66e0a35120b2fc32cb4d0051 + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/679c1c2e7a696722a188f84b method: PATCH response: proto: HTTP/2.0 @@ -101,13 +101,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"66e0a35120b2fc32cb4d0051","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256"}' + body: '{"id":"679c1c2e7a696722a188f84b","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 200.35875ms + duration: 338.978208ms - id: 3 request: proto: HTTP/1.1 @@ -126,8 +126,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/66e0a35120b2fc32cb4d0051 + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/679c1c2e7a696722a188f84b method: PATCH response: proto: HTTP/2.0 @@ -137,13 +137,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"66e0a35120b2fc32cb4d0051","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256"}' + body: '{"id":"679c1c2e7a696722a188f84b","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 181.64775ms + duration: 365.148042ms - id: 4 request: proto: HTTP/1.1 @@ -162,8 +162,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/66e0a35120b2fc32cb4d0051 + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/679c1c2e7a696722a188f84b method: PATCH response: proto: HTTP/2.0 @@ -173,13 +173,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"66e0a35120b2fc32cb4d0051","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256"}' + body: '{"id":"679c1c2e7a696722a188f84b","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 186.175542ms + duration: 563.2295ms - id: 5 request: proto: HTTP/1.1 @@ -197,8 +197,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/66e0a35120b2fc32cb4d0051 + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/679c1c2e7a696722a188f84b method: GET response: proto: HTTP/2.0 @@ -208,13 +208,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"66e0a35120b2fc32cb4d0051","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256"}' + body: '{"id":"679c1c2e7a696722a188f84b","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 193.344042ms + duration: 356.130833ms - id: 6 request: proto: HTTP/1.1 @@ -232,7 +232,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/https:%2F%2Fuat.api.terraform-provider-auth0.com%2Ftestaccdatasourceuser method: GET response: @@ -243,13 +243,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"66e0a35120b2fc32cb4d0051","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256"}' + body: '{"id":"679c1c2e7a696722a188f84b","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 154.667834ms + duration: 400.522792ms - id: 7 request: proto: HTTP/1.1 @@ -268,7 +268,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/https:%2F%2Fuat.api.terraform-provider-auth0.com%2Ftestaccdatasourceuser method: PATCH response: @@ -279,13 +279,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"66e0a35120b2fc32cb4d0051","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + body: '{"id":"679c1c2e7a696722a188f84b","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 287.540625ms + duration: 668.353ms - id: 8 request: proto: HTTP/1.1 @@ -303,7 +303,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/https:%2F%2Fuat.api.terraform-provider-auth0.com%2Ftestaccdatasourceuser method: GET response: @@ -314,13 +314,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"66e0a35120b2fc32cb4d0051","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + body: '{"id":"679c1c2e7a696722a188f84b","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 157.933667ms + duration: 789.369083ms - id: 9 request: proto: HTTP/1.1 @@ -339,7 +339,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles method: POST response: @@ -350,13 +350,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"rol_VoVVTu34OMLI0VMi","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}' + body: '{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 231.829167ms + duration: 1.071537833s - id: 10 request: proto: HTTP/1.1 @@ -374,8 +374,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_VoVVTu34OMLI0VMi + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_3c5LlNoj2CfignUg method: GET response: proto: HTTP/2.0 @@ -385,13 +385,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"rol_VoVVTu34OMLI0VMi","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}' + body: '{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 166.66225ms + duration: 1.190749125s - id: 11 request: proto: HTTP/1.1 @@ -410,7 +410,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles method: POST response: @@ -421,13 +421,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"rol_A0fZSzHOXfRgKYlh","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"}' + body: '{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 164.637166ms + duration: 2.156630083s - id: 12 request: proto: HTTP/1.1 @@ -445,8 +445,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_A0fZSzHOXfRgKYlh + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_YO2dtXKCFWZw8XoK method: GET response: proto: HTTP/2.0 @@ -456,13 +456,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"rol_A0fZSzHOXfRgKYlh","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"}' + body: '{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 166.8525ms + duration: 1.58502325s - id: 13 request: proto: HTTP/1.1 @@ -481,7 +481,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users method: POST response: @@ -492,13 +492,13 @@ interactions: trailer: {} content_length: 610 uncompressed: false - body: '{"created_at":"2024-09-10T19:51:47.948Z","email":"testaccdatasourceuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccdatasourceuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccdatasourceuser","picture":"https://www.example.com/picture.jpg","updated_at":"2024-09-10T19:51:47.948Z","user_id":"auth0|testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"username":"testaccdatasourceuser","app_metadata":{"baz":"qux","foo":"bar"}}' + body: '{"created_at":"2025-01-31T00:41:28.398Z","email":"testaccdatasourceuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccdatasourceuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccdatasourceuser","picture":"https://www.example.com/picture.jpg","updated_at":"2025-01-31T00:41:28.398Z","user_id":"auth0|testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"username":"testaccdatasourceuser","app_metadata":{"baz":"qux","foo":"bar"}}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 330.070584ms + duration: 623.0785ms - id: 14 request: proto: HTTP/1.1 @@ -516,7 +516,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser method: GET response: @@ -527,13 +527,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"created_at":"2024-09-10T19:51:47.948Z","email":"testaccdatasourceuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccdatasourceuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccdatasourceuser","picture":"https://www.example.com/picture.jpg","updated_at":"2024-09-10T19:51:47.948Z","user_id":"auth0|testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"username":"testaccdatasourceuser","app_metadata":{"baz":"qux","foo":"bar"}}' + body: '{"created_at":"2025-01-31T00:41:28.398Z","email":"testaccdatasourceuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccdatasourceuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccdatasourceuser","picture":"https://www.example.com/picture.jpg","updated_at":"2025-01-31T00:41:28.398Z","user_id":"auth0|testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"username":"testaccdatasourceuser","app_metadata":{"baz":"qux","foo":"bar"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 176.7295ms + duration: 379.25575ms - id: 15 request: proto: HTTP/1.1 @@ -552,7 +552,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/permissions method: POST response: @@ -569,7 +569,7 @@ interactions: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 188.181667ms + duration: 372.819417ms - id: 16 request: proto: HTTP/1.1 @@ -587,7 +587,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/permissions?include_totals=true&page=0&per_page=100 method: GET response: @@ -604,7 +604,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 189.078875ms + duration: 453.773167ms - id: 17 request: proto: HTTP/1.1 @@ -617,13 +617,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"roles":["rol_A0fZSzHOXfRgKYlh","rol_VoVVTu34OMLI0VMi"]} + {"roles":["rol_YO2dtXKCFWZw8XoK","rol_3c5LlNoj2CfignUg"]} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/roles method: POST response: @@ -640,7 +640,7 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 208.912875ms + duration: 329.176167ms - id: 18 request: proto: HTTP/1.1 @@ -658,7 +658,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/roles?include_totals=true&page=0&per_page=100 method: GET response: @@ -669,13 +669,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"roles":[{"id":"rol_A0fZSzHOXfRgKYlh","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_VoVVTu34OMLI0VMi","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' + body: '{"roles":[{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 166.889458ms + duration: 420.928292ms - id: 19 request: proto: HTTP/1.1 @@ -693,7 +693,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser method: GET response: @@ -704,13 +704,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"created_at":"2024-09-10T19:51:47.948Z","email":"testaccdatasourceuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccdatasourceuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccdatasourceuser","picture":"https://www.example.com/picture.jpg","updated_at":"2024-09-10T19:51:47.948Z","user_id":"auth0|testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"username":"testaccdatasourceuser","app_metadata":{"baz":"qux","foo":"bar"}}' + body: '{"created_at":"2025-01-31T00:41:28.398Z","email":"testaccdatasourceuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccdatasourceuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccdatasourceuser","picture":"https://www.example.com/picture.jpg","updated_at":"2025-01-31T00:41:28.398Z","user_id":"auth0|testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"username":"testaccdatasourceuser","app_metadata":{"baz":"qux","foo":"bar"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 182.202333ms + duration: 321.708542ms - id: 20 request: proto: HTTP/1.1 @@ -728,7 +728,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/roles?include_totals=true&page=0&per_page=100 method: GET response: @@ -739,13 +739,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"roles":[{"id":"rol_A0fZSzHOXfRgKYlh","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_VoVVTu34OMLI0VMi","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' + body: '{"roles":[{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 365.078125ms + duration: 402.634709ms - id: 21 request: proto: HTTP/1.1 @@ -763,7 +763,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/permissions?include_totals=true&page=0&per_page=100 method: GET response: @@ -780,7 +780,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 179.432292ms + duration: 323.375209ms - id: 22 request: proto: HTTP/1.1 @@ -798,7 +798,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser method: GET response: @@ -809,13 +809,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"created_at":"2024-09-10T19:51:47.948Z","email":"testaccdatasourceuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccdatasourceuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccdatasourceuser","picture":"https://www.example.com/picture.jpg","updated_at":"2024-09-10T19:51:47.948Z","user_id":"auth0|testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"username":"testaccdatasourceuser","app_metadata":{"baz":"qux","foo":"bar"}}' + body: '{"created_at":"2025-01-31T00:41:28.398Z","email":"testaccdatasourceuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccdatasourceuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccdatasourceuser","picture":"https://www.example.com/picture.jpg","updated_at":"2025-01-31T00:41:28.398Z","user_id":"auth0|testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"username":"testaccdatasourceuser","app_metadata":{"baz":"qux","foo":"bar"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 171.724792ms + duration: 340.202416ms - id: 23 request: proto: HTTP/1.1 @@ -833,7 +833,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/roles?include_totals=true&page=0&per_page=100 method: GET response: @@ -844,13 +844,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"roles":[{"id":"rol_A0fZSzHOXfRgKYlh","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_VoVVTu34OMLI0VMi","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' + body: '{"roles":[{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 181.350375ms + duration: 431.976166ms - id: 24 request: proto: HTTP/1.1 @@ -868,7 +868,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/permissions?include_totals=true&page=0&per_page=100 method: GET response: @@ -885,7 +885,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 188.864375ms + duration: 363.385042ms - id: 25 request: proto: HTTP/1.1 @@ -903,8 +903,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/66e0a35120b2fc32cb4d0051 + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/679c1c2e7a696722a188f84b method: GET response: proto: HTTP/2.0 @@ -914,13 +914,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"66e0a35120b2fc32cb4d0051","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + body: '{"id":"679c1c2e7a696722a188f84b","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 160.889041ms + duration: 317.174209ms - id: 26 request: proto: HTTP/1.1 @@ -938,7 +938,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/https:%2F%2Fuat.api.terraform-provider-auth0.com%2Ftestaccdatasourceuser method: GET response: @@ -949,13 +949,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"66e0a35120b2fc32cb4d0051","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + body: '{"id":"679c1c2e7a696722a188f84b","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 162.505375ms + duration: 321.000833ms - id: 27 request: proto: HTTP/1.1 @@ -973,8 +973,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_VoVVTu34OMLI0VMi + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_3c5LlNoj2CfignUg method: GET response: proto: HTTP/2.0 @@ -984,13 +984,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"rol_VoVVTu34OMLI0VMi","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}' + body: '{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 176.316292ms + duration: 330.72225ms - id: 28 request: proto: HTTP/1.1 @@ -1008,8 +1008,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_A0fZSzHOXfRgKYlh + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_YO2dtXKCFWZw8XoK method: GET response: proto: HTTP/2.0 @@ -1019,13 +1019,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"rol_A0fZSzHOXfRgKYlh","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"}' + body: '{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 174.111792ms + duration: 364.476375ms - id: 29 request: proto: HTTP/1.1 @@ -1043,7 +1043,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser method: GET response: @@ -1054,13 +1054,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"created_at":"2024-09-10T19:51:47.948Z","email":"testaccdatasourceuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccdatasourceuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccdatasourceuser","picture":"https://www.example.com/picture.jpg","updated_at":"2024-09-10T19:51:47.948Z","user_id":"auth0|testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"username":"testaccdatasourceuser","app_metadata":{"baz":"qux","foo":"bar"}}' + body: '{"created_at":"2025-01-31T00:41:28.398Z","email":"testaccdatasourceuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccdatasourceuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccdatasourceuser","picture":"https://www.example.com/picture.jpg","updated_at":"2025-01-31T00:41:28.398Z","user_id":"auth0|testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"username":"testaccdatasourceuser","app_metadata":{"baz":"qux","foo":"bar"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 163.300042ms + duration: 328.417791ms - id: 30 request: proto: HTTP/1.1 @@ -1078,7 +1078,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/permissions?include_totals=true&page=0&per_page=100 method: GET response: @@ -1095,7 +1095,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 180.913875ms + duration: 328.028917ms - id: 31 request: proto: HTTP/1.1 @@ -1113,7 +1113,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/roles?include_totals=true&page=0&per_page=100 method: GET response: @@ -1124,13 +1124,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"roles":[{"id":"rol_A0fZSzHOXfRgKYlh","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_VoVVTu34OMLI0VMi","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' + body: '{"roles":[{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 207.062708ms + duration: 317.900042ms - id: 32 request: proto: HTTP/1.1 @@ -1148,7 +1148,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser method: GET response: @@ -1159,13 +1159,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"created_at":"2024-09-10T19:51:47.948Z","email":"testaccdatasourceuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccdatasourceuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccdatasourceuser","picture":"https://www.example.com/picture.jpg","updated_at":"2024-09-10T19:51:47.948Z","user_id":"auth0|testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"username":"testaccdatasourceuser","app_metadata":{"baz":"qux","foo":"bar"}}' + body: '{"created_at":"2025-01-31T00:41:28.398Z","email":"testaccdatasourceuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccdatasourceuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccdatasourceuser","picture":"https://www.example.com/picture.jpg","updated_at":"2025-01-31T00:41:28.398Z","user_id":"auth0|testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"username":"testaccdatasourceuser","app_metadata":{"baz":"qux","foo":"bar"}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 167.126584ms + duration: 326.8405ms - id: 33 request: proto: HTTP/1.1 @@ -1183,7 +1183,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/roles?include_totals=true&page=0&per_page=100 method: GET response: @@ -1194,13 +1194,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"roles":[{"id":"rol_A0fZSzHOXfRgKYlh","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_VoVVTu34OMLI0VMi","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' + body: '{"roles":[{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 166.001084ms + duration: 344.08475ms - id: 34 request: proto: HTTP/1.1 @@ -1218,7 +1218,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/permissions?include_totals=true&page=0&per_page=100 method: GET response: @@ -1235,8 +1235,1618 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 176.281708ms + duration: 376.998375ms - id: 35 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/679c1c2e7a696722a188f84b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"679c1c2e7a696722a188f84b","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 341.255917ms + - id: 36 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/https:%2F%2Fuat.api.terraform-provider-auth0.com%2Ftestaccdatasourceuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"679c1c2e7a696722a188f84b","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 313.374542ms + - id: 37 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_3c5LlNoj2CfignUg + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 334.780916ms + - id: 38 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_YO2dtXKCFWZw8XoK + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 322.15775ms + - id: 39 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2025-01-31T00:41:28.398Z","email":"testaccdatasourceuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccdatasourceuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccdatasourceuser","picture":"https://www.example.com/picture.jpg","updated_at":"2025-01-31T00:41:28.398Z","user_id":"auth0|testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"username":"testaccdatasourceuser","app_metadata":{"baz":"qux","foo":"bar"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 329.254333ms + - id: 40 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/permissions?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"permissions":[{"permission_name":"create:foo","description":"Can create Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]},{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 332.973792ms + - id: 41 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/roles?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 360.009333ms + - id: 42 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users?include_totals=true&per_page=50&q=username%3Atestaccdatasourceuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"start":0,"limit":50,"length":1,"users":[{"created_at":"2025-01-31T00:41:28.398Z","identities":[{"connection":"Username-Password-Authentication","user_id":"testaccdatasourceuser","provider":"auth0","isSocial":false}],"picture":"https://www.example.com/picture.jpg","given_name":"Firstname","nickname":"testaccdatasourceuser","email_verified":false,"updated_at":"2025-01-31T00:41:28.398Z","user_id":"auth0|testaccdatasourceuser","name":"Firstname Lastname","username":"testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"email":"testaccdatasourceuser@acceptance.test.com","family_name":"Lastname","app_metadata":{"baz":"qux","foo":"bar"}}],"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 376.017917ms + - id: 43 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/roles?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 357.427292ms + - id: 44 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/permissions?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"permissions":[{"permission_name":"create:foo","description":"Can create Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]},{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 366.861083ms + - id: 45 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users?include_totals=true&per_page=50&q=username%3Atestaccdatasourceuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"start":0,"limit":50,"length":1,"users":[{"created_at":"2025-01-31T00:41:28.398Z","identities":[{"connection":"Username-Password-Authentication","user_id":"testaccdatasourceuser","provider":"auth0","isSocial":false}],"picture":"https://www.example.com/picture.jpg","given_name":"Firstname","nickname":"testaccdatasourceuser","email_verified":false,"updated_at":"2025-01-31T00:41:28.398Z","user_id":"auth0|testaccdatasourceuser","name":"Firstname Lastname","username":"testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"email":"testaccdatasourceuser@acceptance.test.com","family_name":"Lastname","app_metadata":{"baz":"qux","foo":"bar"}}],"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 354.560834ms + - id: 46 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/roles?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 341.070834ms + - id: 47 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/permissions?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"permissions":[{"permission_name":"create:foo","description":"Can create Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]},{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 358.397875ms + - id: 48 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/679c1c2e7a696722a188f84b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"679c1c2e7a696722a188f84b","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 314.219708ms + - id: 49 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/https:%2F%2Fuat.api.terraform-provider-auth0.com%2Ftestaccdatasourceuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"679c1c2e7a696722a188f84b","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 320.816292ms + - id: 50 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_3c5LlNoj2CfignUg + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 313.733625ms + - id: 51 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_YO2dtXKCFWZw8XoK + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 318.792ms + - id: 52 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2025-01-31T00:41:28.398Z","email":"testaccdatasourceuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccdatasourceuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccdatasourceuser","picture":"https://www.example.com/picture.jpg","updated_at":"2025-01-31T00:41:28.398Z","user_id":"auth0|testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"username":"testaccdatasourceuser","app_metadata":{"baz":"qux","foo":"bar"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 316.381542ms + - id: 53 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/permissions?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"permissions":[{"permission_name":"create:foo","description":"Can create Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]},{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 353.798125ms + - id: 54 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/roles?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 329.159417ms + - id: 55 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users?include_totals=true&per_page=50&q=username%3Atestaccdatasourceuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"start":0,"limit":50,"length":1,"users":[{"created_at":"2025-01-31T00:41:28.398Z","identities":[{"connection":"Username-Password-Authentication","user_id":"testaccdatasourceuser","provider":"auth0","isSocial":false}],"picture":"https://www.example.com/picture.jpg","given_name":"Firstname","nickname":"testaccdatasourceuser","email_verified":false,"updated_at":"2025-01-31T00:41:28.398Z","user_id":"auth0|testaccdatasourceuser","name":"Firstname Lastname","username":"testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"email":"testaccdatasourceuser@acceptance.test.com","family_name":"Lastname","app_metadata":{"baz":"qux","foo":"bar"}}],"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 372.744917ms + - id: 56 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/roles?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 344.285875ms + - id: 57 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/permissions?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"permissions":[{"permission_name":"create:foo","description":"Can create Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]},{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 337.159375ms + - id: 58 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/679c1c2e7a696722a188f84b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"679c1c2e7a696722a188f84b","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 336.1775ms + - id: 59 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/https:%2F%2Fuat.api.terraform-provider-auth0.com%2Ftestaccdatasourceuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"679c1c2e7a696722a188f84b","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 313.439375ms + - id: 60 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_3c5LlNoj2CfignUg + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 325.550416ms + - id: 61 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_YO2dtXKCFWZw8XoK + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 332.375584ms + - id: 62 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2025-01-31T00:41:28.398Z","email":"testaccdatasourceuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccdatasourceuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccdatasourceuser","picture":"https://www.example.com/picture.jpg","updated_at":"2025-01-31T00:41:28.398Z","user_id":"auth0|testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"username":"testaccdatasourceuser","app_metadata":{"baz":"qux","foo":"bar"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 338.847708ms + - id: 63 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/permissions?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"permissions":[{"permission_name":"create:foo","description":"Can create Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]},{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 341.373042ms + - id: 64 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/roles?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 332.138375ms + - id: 65 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users?include_totals=true&per_page=50&q=email%3Atestaccdatasourceuser%40acceptance.test.com + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"start":0,"limit":50,"length":1,"users":[{"created_at":"2025-01-31T00:41:28.398Z","identities":[{"connection":"Username-Password-Authentication","user_id":"testaccdatasourceuser","provider":"auth0","isSocial":false}],"picture":"https://www.example.com/picture.jpg","given_name":"Firstname","nickname":"testaccdatasourceuser","email_verified":false,"updated_at":"2025-01-31T00:41:28.398Z","user_id":"auth0|testaccdatasourceuser","name":"Firstname Lastname","username":"testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"email":"testaccdatasourceuser@acceptance.test.com","family_name":"Lastname","app_metadata":{"baz":"qux","foo":"bar"}}],"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 330.856958ms + - id: 66 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/roles?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 326.600333ms + - id: 67 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/permissions?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"permissions":[{"permission_name":"create:foo","description":"Can create Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]},{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 338.708417ms + - id: 68 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users?include_totals=true&per_page=50&q=email%3Atestaccdatasourceuser%40acceptance.test.com + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"start":0,"limit":50,"length":1,"users":[{"created_at":"2025-01-31T00:41:28.398Z","identities":[{"connection":"Username-Password-Authentication","user_id":"testaccdatasourceuser","provider":"auth0","isSocial":false}],"picture":"https://www.example.com/picture.jpg","given_name":"Firstname","nickname":"testaccdatasourceuser","email_verified":false,"updated_at":"2025-01-31T00:41:28.398Z","user_id":"auth0|testaccdatasourceuser","name":"Firstname Lastname","username":"testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"email":"testaccdatasourceuser@acceptance.test.com","family_name":"Lastname","app_metadata":{"baz":"qux","foo":"bar"}}],"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 409.95075ms + - id: 69 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/roles?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 326.337834ms + - id: 70 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/permissions?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"permissions":[{"permission_name":"create:foo","description":"Can create Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]},{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 319.781834ms + - id: 71 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/679c1c2e7a696722a188f84b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"679c1c2e7a696722a188f84b","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 323.214875ms + - id: 72 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/https:%2F%2Fuat.api.terraform-provider-auth0.com%2Ftestaccdatasourceuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"679c1c2e7a696722a188f84b","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Can create Foo"},{"value":"read:foo","description":"Can read Foo"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 321.83125ms + - id: 73 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_3c5LlNoj2CfignUg + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 348.654ms + - id: 74 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_YO2dtXKCFWZw8XoK + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 342.412833ms + - id: 75 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2025-01-31T00:41:28.398Z","email":"testaccdatasourceuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccdatasourceuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccdatasourceuser","picture":"https://www.example.com/picture.jpg","updated_at":"2025-01-31T00:41:28.398Z","user_id":"auth0|testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"username":"testaccdatasourceuser","app_metadata":{"baz":"qux","foo":"bar"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 322.874042ms + - id: 76 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/permissions?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"permissions":[{"permission_name":"create:foo","description":"Can create Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]},{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 323.590958ms + - id: 77 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/roles?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 326.647ms + - id: 78 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users?include_totals=true&per_page=50&q=email%3Atestaccdatasourceuser%40acceptance.test.com + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"start":0,"limit":50,"length":1,"users":[{"created_at":"2025-01-31T00:41:28.398Z","identities":[{"connection":"Username-Password-Authentication","user_id":"testaccdatasourceuser","provider":"auth0","isSocial":false}],"picture":"https://www.example.com/picture.jpg","given_name":"Firstname","nickname":"testaccdatasourceuser","email_verified":false,"updated_at":"2025-01-31T00:41:28.398Z","user_id":"auth0|testaccdatasourceuser","name":"Firstname Lastname","username":"testaccdatasourceuser","user_metadata":{"baz":"qux","foo":"bar"},"email":"testaccdatasourceuser@acceptance.test.com","family_name":"Lastname","app_metadata":{"baz":"qux","foo":"bar"}}],"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 361.437875ms + - id: 79 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/roles?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[{"id":"rol_YO2dtXKCFWZw8XoK","name":"Test Admin testaccdatasourceuser","description":"Administrator testaccdatasourceuser"},{"id":"rol_3c5LlNoj2CfignUg","name":"Test Owner testaccdatasourceuser","description":"Owner testaccdatasourceuser"}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 337.884042ms + - id: 80 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/permissions?include_totals=true&page=0&per_page=100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"permissions":[{"permission_name":"create:foo","description":"Can create Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]},{"permission_name":"read:foo","description":"Can read Foo","resource_server_name":"Acceptance Test - testaccdatasourceuser","resource_server_identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","sources":[{"source_id":"","source_name":"","source_type":"DIRECT"}]}],"start":0,"limit":100,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 371.227667ms + - id: 81 request: proto: HTTP/1.1 proto_major: 1 @@ -1248,13 +2858,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"roles":["rol_A0fZSzHOXfRgKYlh","rol_VoVVTu34OMLI0VMi"]} + {"roles":["rol_YO2dtXKCFWZw8XoK","rol_3c5LlNoj2CfignUg"]} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/roles method: DELETE response: @@ -1271,8 +2881,8 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 165.619ms - - id: 36 + duration: 330.609834ms + - id: 82 request: proto: HTTP/1.1 proto_major: 1 @@ -1290,7 +2900,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser/permissions method: DELETE response: @@ -1307,8 +2917,8 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 183.498125ms - - id: 37 + duration: 336.342291ms + - id: 83 request: proto: HTTP/1.1 proto_major: 1 @@ -1325,7 +2935,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccdatasourceuser method: DELETE response: @@ -1342,8 +2952,8 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 252.367708ms - - id: 38 + duration: 461.20275ms + - id: 84 request: proto: HTTP/1.1 proto_major: 1 @@ -1361,8 +2971,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_A0fZSzHOXfRgKYlh + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_YO2dtXKCFWZw8XoK method: DELETE response: proto: HTTP/2.0 @@ -1378,8 +2988,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 186.030125ms - - id: 39 + duration: 354.238292ms + - id: 85 request: proto: HTTP/1.1 proto_major: 1 @@ -1397,8 +3007,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_VoVVTu34OMLI0VMi + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_3c5LlNoj2CfignUg method: DELETE response: proto: HTTP/2.0 @@ -1414,8 +3024,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 183.888875ms - - id: 40 + duration: 346.617625ms + - id: 86 request: proto: HTTP/1.1 proto_major: 1 @@ -1433,7 +3043,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 + - Go-Auth0/1.15.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/https:%2F%2Fuat.api.terraform-provider-auth0.com%2Ftestaccdatasourceuser method: PATCH response: @@ -1444,14 +3054,14 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"66e0a35120b2fc32cb4d0051","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[]}' + body: '{"id":"679c1c2e7a696722a188f84b","name":"Acceptance Test - testaccdatasourceuser","identifier":"https://uat.api.terraform-provider-auth0.com/testaccdatasourceuser","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 217.768125ms - - id: 41 + duration: 398.428041ms + - id: 87 request: proto: HTTP/1.1 proto_major: 1 @@ -1468,8 +3078,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0/1.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/66e0a35120b2fc32cb4d0051 + - Go-Auth0/1.15.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/679c1c2e7a696722a188f84b method: DELETE response: proto: HTTP/2.0 @@ -1485,4 +3095,4 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 210.729167ms + duration: 363.747875ms