# Grant user access

How to use the full Grant access dialog: add e-mails, provision missing users, choose target scope, and assign role/device rights.

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

## Who is this for

Group admins who need to add people into the group access list using the full access-assignment dialog.

## Outcome

You can add existing users, provision missing users, choose whether access should go to the current group or selected direct subgroups, and assign the correct rights and device scope.

## Before you start

- You are signed in.
- Correct group is selected.
- INSERT rights for users are available.

## What this dialog really does

The Grant access dialog combines several decisions in one flow:

- which e-mail addresses should be processed,
- which of them already exist and which are missing,
- whether missing users should be provisioned immediately,
- which access role they should receive,
- whether access applies to the current group or selected direct subgroups,
- whether access covers all devices or only a restricted device set,
- and, for custom role, which domain-level permissions should be granted.

## Steps

1. Open Groups > Access > Users tab.
2. Click Grant access.
3. Add one or more user e-mails into the chip field.
4. Wait while the dialog resolves whether each e-mail already exists.
5. For missing users, decide whether to enable `Complete signup now`.
6. If provisioning is enabled for a missing user, fill first name, last name, notification language, and timezone.
7. Choose the access role.
8. Choose grant target:
   - current group, or
   - selected direct subgroups.
9. Choose device scope:
   - all devices in group, or
   - restricted device selection.
10. If role is `Custom`, adjust the access matrix.
11. Click Add users.
12. Review the result and, if offered, download credentials for newly provisioned users.

## Email chips and validation

The e-mail field is chip-based and behaves as a validator, deduplicator, and status resolver.

What happens when you enter e-mails:

- input is normalized to lowercase and trimmed,
- separator keys create individual chips,
- invalid e-mail format creates an invalid chip and blocks submit,
- duplicate e-mails are ignored instead of being added twice,
- valid e-mails are checked against the group/user resolution service.

Each valid e-mail can end in one of these practical states:

- `exists`: the user already exists,
- `missing`: the user does not exist and can be provisioned,
- `checking`: resolution is still running,
- `error`: resolution failed.

The Add users button remains disabled while:

- there are no e-mails,
- at least one chip is invalid,
- any valid chip is still in `checking` state,
- other required parts of the dialog are incomplete.

## Provisioning missing users

When an entered e-mail is marked as missing, the dialog can expand into immediate provisioning.

If you enable `Complete signup now`, the dialog requires:

- first name,
- last name,
- notification language,
- timezone.

Important behavior:

- provisioning is optional per missing e-mail,
- the e-mail is fixed/read-only inside the provisioning subform,
- defaults are taken from the current user or fallback locale/timezone,
- credentials download may be offered after submit if real accounts were created.

Use this mode when you want a usable account immediately instead of only preparing access for a later registration step.

## Role selection

The dialog supports these role presets:

- Owner,
- Device manager,
- Device Tenant (management),
- Device Tenant (visuals and alerts),
- Guest,
- Custom.

Important behavior:

- changing role applies a predefined rights profile,
- non-owner roles explicitly lose owner right before submit,
- broad management roles can clear device restrictions because they imply wider scope,
- `Custom` unlocks the full permission matrix.

## Grant target: current group vs direct subgroups

In add-users mode, the dialog lets you choose where the access should be applied.

Options:

- `Current group`
- `Selected direct subgroups`

Important behavior:

- only direct child groups of the current group are offered,
- if no direct child groups exist, the dialog says so,
- in direct-subgroups mode, submit stays disabled until at least one subgroup is selected.

This is intentionally narrower than a full tree picker.

## Device scope

The dialog also controls whether the granted access applies to all devices or only to a restricted subset.

Options:

- `Access all devices in group`
- restricted device selection through the device picker

Important behavior:

- when all-devices is off, at least one device must be selected,
- when all-devices is off, several higher-level rights are reduced or removed automatically,
- broad management permissions are not preserved freely on restricted device subsets,
- when all-devices is enabled again, the restricted device list is cleared.

## Custom access matrix

When role is `Custom`, the dialog opens a long rights matrix with domain-level radio groups.

Covered areas include:

- Group management,
- Users,
- Device,
- Visuals,
- Downlink,
- Connectivity,
- Tags,
- Geoplaces,
- Notification rules,
- Public channels,
- Forwarding,
- Payments,
- Diagnostic data,
- System alerts,
- Sigfox data,
- Credits.

Important behavior:

- not every radio level is available in every domain,
- some options are disabled by design,
- some rights depend on other broader rights,
- device rights influence other domains:
  - lower device rights remove downlink management,
  - update/full device rights can automatically elevate visuals access,
- many matrix sections are disabled when access is not for all devices.

So this is not a completely free ACL editor. The dialog keeps rights internally consistent.

## What happens after submit

When you click `Add users`, the dialog returns a structured payload into the surrounding user-management flow.

That payload includes:

- normalized e-mails,
- selected rights object,
- provisioning payload for enabled missing users,
- target mode,
- target group ids,
- target group names.

Then the surrounding flow may:

- provision missing users first,
- offer credentials download for newly created accounts,
- grant access to the current group,
- or grant access to selected direct subgroups,
- show partial success with rejection reasons.

## Practical checks

- Valid e-mails become chips; invalid ones block submit.
- Missing users show `Complete signup now` with first-name/last-name/lang/timezone fields.
- Existing users do not require provisioning details.
- Direct subgroup mode requires at least one selected child group.
- Restricted-device mode requires at least one selected device.
- Switching to `Custom` reveals the full rights matrix.
- Submit stays disabled while any e-mail is still in `checking` state.
- Credentials download appears only when provisioning really created accounts.
- Partial results clearly separate added and rejected users.

## Common issues

- Add users button stays disabled: likely no e-mails, invalid chip, pending e-mail resolution, no selected devices in restricted mode, or no selected subgroup in direct-subgroups mode.
- Some e-mails are rejected: rejection reason codes are shown after submit.
- Missing users cannot be provisioned cleanly: first name, last name, language, or timezone is missing.
- Grant button is missing: current user has no insert rights in this group.
- Direct subgroup mode has no selectable groups: current group has no direct children.
- Custom rights behave unexpectedly: the matrix enforces dependency rules and may reset related rights when scope changes.
- Restricted-device grant cannot keep broad management permissions: this is enforced intentionally by the dialog logic.

## Related use cases

- [Access users tab](/help/groups-tabs-access-users/)
- [Users update access](/help/groups-access-users-update-access/)
- [Users finish registration](/help/groups-access-users-finish-registration/)

## Support handoff

If grant access fails, include content_id, group id, entered e-mails, which ones were `existing` vs `missing`, whether provisioning was enabled, selected role, all-devices state, selected device count, target mode, selected subgroup ids, and rejection reasons.
