For the complete documentation index, see llms.txt. A markdown version of this page is at /guides/set-up-team/index.md.

Set up a team

Give a team its own namespace, admit its people, give them roles and limit what their workstations may name, as an organization administrator.

Give a team its own namespace, admit its people, give them roles and limit what their workstations may name, as an organization administrator. You want this once Ringleader has set up your organization and you are ready to bring a team onto it.

Prerequisites

  • Ringleader has created your organization, its domain claim (the OrgDomain) and your administrator access. Organizations and domains says what Ringleader creates.
  • You are signed in as an organization administrator, as Sign in to your organization shows.
  • The examples use the organization acmecorp, the domain acme.com, a namespace named acmecorp-team-a and a person named bob@acme.com. Replace them with yours.

Create a namespace

Create one namespace for the team, named as Namespace names says. Create it in your organization:

rl namespace create acmecorp-team-a --org acmecorp

Admit people

Anyone whose email address is at your verified domain joins your organization on their first sign-in, with no action from you. Organization membership says how people join.

  1. Ask each person to sign in, as Sign in to your organization shows. For bob@acme.com, the sign-in matches acme.com and onboards him into acmecorp.

  2. List your organization’s members:

    rl user get

    The list includes bob@acme.com.

Give someone a role

Put a person into the team’s namespace with a role binding. The namespace-member role lets them change their own workstations and nobody else’s. Roles and grants lists the roles.

  1. Save this as bob-team-a.yaml:

    apiVersion: core.ringleader.dev/v1
    kind: RoleBinding
    metadata: { name: bob-team-a, namespace: acmecorp-team-a }
    spec:
      subjects: ["user:bob@acme.com"]
      roleRef: { kind: GlobalRole, name: namespace-member }
  2. Apply the file:

    rl apply -f bob-team-a.yaml

Write a policy

Limit what your organization’s workstations may name with an OrgPolicy. This one allows git repositories under github.com/acme and nothing else. Namespaces can narrow it and can’t widen it. Namespace and organization policies says how policies combine.

  1. Save this as acme-baseline.yaml:

    apiVersion: core.ringleader.dev/v1
    kind: OrgPolicy
    metadata:
      name: acme-baseline
    spec:
      org: acmecorp
      priority: 200
      rules:
        gitSources:
          default: deny
          allow:
            - github.com/acme
  2. Apply the file:

    rl apply -f acme-baseline.yaml
  3. List your organization’s policies:

    rl orgpolicy get

    The list names acme-baseline. An apply that names a repository the policy denies is then refused, with a message that names the field and the value.

Troubleshoot

Next steps