# Finish user registration

How to use the finish-registration dialog for an invited user, including required fields and one-time credentials handling.

Audience: [Group admin](/help/by-role/group-admin/)

## Who is this for

Group admins who need to complete onboarding for an invited user.

## Outcome

You can complete registration for an invited user, trigger credential generation, and handle the one-time credentials download path correctly.

## Before you start

- You are signed in.
- Correct group is selected.
- The user is in invitation-pending state.

## What this flow actually does

Finish registration is a dedicated dialog used for users who were invited but did not complete onboarding themselves.

The dialog does three things:

- reuses the invited user's e-mail,
- collects the missing profile fields needed for account completion,
- triggers credential generation for that specific existing invited user.

## Steps

1. Find the invited user in the table.
2. Click finish registration from the status column.
3. Review the dialog notice explaining that the system will generate credentials automatically.
4. Fill or correct the required fields:
  - first name,
  - last name,
  - notification language,
  - timezone.
5. Confirm the dialog with Finish registration.
6. If the operation returns created credentials, decide immediately whether to download them.
7. Verify that the user row state is refreshed in the list.

## What the dialog contains

The dialog is simple, but every field matters.

Visible fields:

- e-mail (read-only),
- first name,
- last name,
- language for notifications,
- timezone.

Important behavior:

- the invited user's e-mail cannot be changed here,
- first name and last name are required,
- language is required,
- timezone is required,
- current user locale/timezone are used as fallback defaults when available,
- the dialog explicitly warns that generated credentials can only be downloaded once.

## Submit behavior

When you click `Finish registration`:

- the dialog validates required fields,
- invalid form state marks all fields as touched and blocks submit,
- valid submit calls the provisioning flow for the existing invited user,
- the dialog then returns `created` and `rejected` result arrays.

This means the operation is not just a UI status change. It is a provisioning action for an already known invited identity.

## Credentials branch

If the provisioning result contains created credentials:

- the surrounding flow opens a credentials-download prompt,
- the operator must decide immediately whether to download them,
- the generated credentials are treated as one-time retrievable output.

If no credentials dialog appears, it usually means no new credential package was created in that result.

## Result handling after dialog close

After a successful finish-registration action:

- the user list is refreshed,
- created credentials may be offered for download,
- rejected results, if any, are shown with detailed reason messages.

So the right post-submit check is not only whether the dialog closed, but whether the row status changed and whether a credentials/rejection branch appeared.

## Practical checks

- The dialog opens only from the invitation-pending status state.
- E-mail is shown read-only and matches the selected invited user.
- Submit is blocked until first name, last name, language, and timezone are valid.
- Pending user state changes after successful completion.
- Created credentials can be downloaded when the result includes them.
- Rejected results are surfaced with reason details.

## Common issues

- Finish registration link is unavailable: user may already be activated or no longer be in invitation-pending state.
- Submit appears to do nothing: required fields may still be invalid and were only marked as touched.
- Credential dialog does not appear: no newly created credentials were returned in the result.
- Finish registration fails with duplicate/account error: the invited account may already exist in a conflicting state.

## Related use cases

- [Users grant access](/help/groups-access-users-grant-access/)
- [Users resend invitation](/help/groups-access-users-resend-invitation/)

## Support handoff

If finish registration fails, include content_id, group id, invited user id/e-mail, the entered first name/last name/lang/timezone values, whether submit was locally blocked or server-failed, and whether created/rejected results were returned.
