Skip to content

Managing Users#

Organisation administrators can manage users and groups through the SCO IAM API. This controls who can log in to the organisation and what projects they can access.


Creating Users#

Create a user in your organisation with a iam.cloud.stakater.com/v1 User claim. The user is provisioned in your organisation's identity realm and receives a welcome email with login credentials.

apiVersion: iam.cloud.stakater.com/v1
kind: User
metadata:
  name: alice
spec:
  parameters:
    username: alice
    email: alice@acmecorp.example.com
    firstName: Alice
    lastName: Smith
    emailVerified: true
    enabled: true
kubectl apply -f alice.yaml

See the Create IAM User how-to guide for the full parameter reference.

Note

If your organisation has connected a company identity provider, do not create a User claim for an email address in its domains. That user gets a password and signs in without the company identity provider. See Users from Your Company Identity Provider.


Users from Your Company Identity Provider#

When your organisation has a company identity provider, users of its email domains need no User claim:

  • The platform creates their organisation user at their first sign-in. It has no password.
  • They do not appear in the console's user list, because there is no User claim for them.
  • You give them access by email address, as for other users: in the members of a group, or in the users of a project's access list.
  • You can add someone to a group before their first sign-in. The membership applies after their first sign-in, within about 15 minutes. Until then, the group already lists them, but they do not have the group's access yet.
  • To stop someone signing in, disable them in your company identity provider. Sessions that are already open stay valid until they expire.

Creating Groups#

Groups let you manage access for multiple users at once. A project can grant access to a group — adding someone to the group automatically grants them the project access configured for that group.

apiVersion: iam.cloud.stakater.com/v1
kind: Group
metadata:
  name: developers
spec:
  parameters:
    name: developers
    members:
      - alice
      - bob
kubectl apply -f developers-group.yaml

See Create IAM Group for the full guide.


Granting Project Access#

Project access is configured in the Project claim's access field:

spec:
  parameters:
    access:
      - role: admin
        users:
          - alice
      - role: edit
        groups:
          - developers
      - role: view
        groups:
          - stakeholders
Role Permissions
admin Full control — create, update, delete any resource in the project
edit Create and manage resources, cannot modify access configuration
view Read-only access to all resources in the project

Disabling or Removing a User#

To disable a user without deleting them:

spec:
  parameters:
    enabled: false

To permanently remove a user:

kubectl delete user alice

This removes the user from your organisation's identity realm. They can no longer log in. Past audit log entries are retained.


Removing a User from a Group#

Update the members list in the group claim and reapply it. Removing a user from a group immediately revokes any project access granted via that group.


What's Next?#