EnsureDefaultProjectMembership
POST/admin/v1/customers/:customer_id/projects/default/members:ensure
EnsureDefaultProjectMembership adds user_id to the customer's default
project as a member when the user has no membership there. It
creates the default project first when it is missing. It never changes
the role of an existing member, and it skips a user whom SCIM blocks from
signing in. Idempotent: a repeat call leaves the same state and returns
joined=false. A caller acting for a person can add only a user who is in
the customer (a project membership or a role binding there), or gets
NOT_FOUND; a machine credential with no person behind it (the Developer
Console's admin API key or service account) adds any existing user. The check is skipped when the auth
database is declared as holding one customer (RBAC_AUTH_DB_MODE=single).
Request
Responses
- 200
Success