# Members and groups

> Give groups workspace permissions and repository access, and fill a group from your identity provider's groups at sign-in.

Source: https://docs.corfedo.ai/workspace/members/

A group gives its members workspace permissions, repository access and AI profiles. Its members are either added in **Settings** › **Groups**, or come from your identity provider each time a person signs in.

## Manage members

People become members when a sign-in connection admits them or an identity provider provisions them. There are no invitations. Open a member in **Settings** › **Members**:

| Action | What it does |
| --- | --- |
| **Suspend**, **Restore** | Stops all access and ends the member's API keys, clients and sessions, keeping their groups and roles for a later **Restore** |
| **Remove from workspace** | Removes the member. They stay out, even when they sign in again, until you select **Allow to rejoin**. |

What each role allows is in [Permissions and scopes](https://docs.corfedo.ai/reference/permissions-and-scopes/).

## Fill a group from sign-in

### Make the provider send groups

Set up the groups claim at your identity provider, as [the table below](#what-each-provider-sends) shows for each provider.

### Read the claim in Corfedo

Open **Settings** › **Sign-in**, the connection, then **Edit**. Under **Claim mapping**, enter the claim name in **Groups claim (optional)**, usually `groups`, and choose **When the claim is missing**: **Fail the sign-in** if your provider always sends it, or **No groups** for Keycloak and other providers that leave it out for people without groups. Save, select **Test sign-in** and activate the changes.

**Check:** **Last test sign-in** lists **Other group values**: values your provider sent that no group lists yet.

### Create the group

Open **Settings** › **Groups** › **Create group**. Under **Members**, choose **From sign-in**, the connection and the group values, one per line, exactly as the test showed them.

**Check:** after a person in one of those provider groups signs in again, they are listed under **Members** of the group.

## What each provider sends

| Provider | Send groups | Values to enter |
| --- | --- | --- |
| Microsoft Entra ID | In the app registration, open **Token configuration**, **Add groups claim**, and include the ID token | Group object IDs. Choose **Groups assigned to the application**, because an account in more than 200 groups cannot sign in. |
| Okta | On the application's **Sign On** tab, set the **Groups claim filter** with the claim name `groups`, for example **Starts with** `eng-` | Group names |
| Keycloak, including the bundled account service | On the client's dedicated scope, add a **Group Membership** mapper with **Full group path** off and **Add to ID token** on | Group names. |
| Authentik | The profile scope sends the groups claim | Group names |
| Google Workspace | Google sign-in sends no groups | |

## When membership changes

- Someone removed from a group at the provider keeps it in Corfedo until their next sign-in. To end access at once, suspend or remove the member.
- Moving a group to sign-in, to another connection, or removing a value clears its members. They rejoin at their next sign-in.
- Disabling a connection that groups use keeps their members.

## Troubleshooting

| What you see | Why | What to do |
| --- | --- | --- |
| **Your identity provider did not send your groups.** at sign-in | The claim is missing and the connection fails such sign-ins, it is not a list, or Entra ID left out more than 200 groups | Check the provider's groups settings. For Entra ID, send only the groups assigned to the application. |
| A person is not in the group after signing in | The values do not match exactly | Compare them with **Other group values** in the last test sign-in. Entra ID sends object IDs, not names. |
| **From sign-in** cannot be chosen | No connection reads a groups claim | Set the groups claim on the connection first |
| Removing a connection, or activating it without a groups claim, is refused | Groups take their members from it | Move those groups to **Added here** or another connection first |
