CreateAnotherUser creates and authenticates a new user. Roles can include org scoped roles with 'roleName: '
(t testing.TB, client *codersdk.Client, organizationID uuid.UUID, roles ...rbac.RoleIdentifier)
| 842 | // CreateAnotherUser creates and authenticates a new user. |
| 843 | // Roles can include org scoped roles with 'roleName:<organization_id>' |
| 844 | func CreateAnotherUser(t testing.TB, client *codersdk.Client, organizationID uuid.UUID, roles ...rbac.RoleIdentifier) (*codersdk.Client, codersdk.User) { |
| 845 | return createAnotherUserRetry(t, client, []uuid.UUID{organizationID}, 5, roles) |
| 846 | } |
| 847 | |
| 848 | func CreateAnotherUserMutators(t testing.TB, client *codersdk.Client, organizationID uuid.UUID, roles []rbac.RoleIdentifier, mutators ...func(r *codersdk.CreateUserRequestWithOrgs)) (*codersdk.Client, codersdk.User) { |
| 849 | return createAnotherUserRetry(t, client, []uuid.UUID{organizationID}, 5, roles, mutators...) |