Skip to content

Commit

Permalink
Refactor auth0_user_roles resource and its tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiught committed Jun 13, 2023
1 parent a99b631 commit c8320fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/auth0/user/resource_roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit c8320fe

Please sign in to comment.