# GroupNotFound

A Group an OIDCClient's spec.allowedGroups names is missing, not declared on the server yet, or of another organization; the resource is Ready=False, Error, and nothing is sent.

## Meaning

The operator sends a client's allowed groups as the server ids of the `Group` resources
`spec.allowedGroups` names, in the client's own namespace, and reads each id from the
Group's `status.groupId`. One of them does not exist, has no `status.groupId` because it has
not been declared on the server yet, or its `status.organization` is not the client's
organization. Nothing is sent until every named Group is declared in the client's
organization; the operator watches Groups and reconciles the client when one changes.

## Impact

A client never registered cannot be used by its application. A registered one keeps the
allowed groups the server last took, so its sign-ins are restricted as before. No user is
let in that the declared list would refuse.

## Diagnosis

1. `kubectl -n <ns> describe oidcclient <name>` names the Group and which of the three it is.
   The admin dashboard's Problems page shows the same message.
2. `kubectl -n <ns> get group <group> -o jsonpath='{.status}'`: no `groupId` means the Group
   itself is not Ready; its own condition says why.
3. Compare the Group's `status.organization` with the client's.

## Mitigation

- Create the Group in the client's namespace, or fix the name in `spec.allowedGroups`.
- A Group that is not Ready: fix what its condition reports.
- A Group of another organization: declare the group in the client's organization, or move
  the client.

## Escalation

Escalate only if the Group is Ready in the client's namespace and organization and the
condition stays; attach both resources' `kubectl describe` output and the operator version.

---

[Operator failure reasons](https://www.nauthera.io/docs/v1/runbooks/operator) · Generated from [`operator/internal/runbook/conditions.yaml`](https://github.com/nauthera/nauthera-server/blob/main/operator/internal/runbook/conditions.yaml) in nauthera-server.
