diff --git a/internal/auth0/user/resource_roles.go b/internal/auth0/user/resource_roles.go index 2d851a299..096d7c61d 100644 --- a/internal/auth0/user/resource_roles.go +++ b/internal/auth0/user/resource_roles.go @@ -57,6 +57,9 @@ func upsertUserRoles(ctx context.Context, data *schema.ResourceData, meta interf return diag.FromErr(err) } + userID := data.Get("user_id").(string) + data.SetId(userID) + return readUserRoles(ctx, data, meta) }