MCPcopy Index your code
hub / github.com/coder/coder / CreateAnotherUser

Function CreateAnotherUser

coderd/coderdtest/coderdtest.go:844–846  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

842// CreateAnotherUser creates and authenticates a new user.
843// Roles can include org scoped roles with 'roleName:<organization_id>'
844func 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
848func 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...)

Calls 1

createAnotherUserRetryFunction · 0.85