Failed to assign user licenses via API

:white_question_mark: Question
There are failures in license assignment via API for some users.

Error message: An unattended robot has not been configured, or the domain/username is not properly set up in Orchestrator. Error code 1420

:light_bulb: Answer

Cause
Delay in license reflection after group addition, or a timing issue with the connection on the Assistant side. The relevant user signed in to the Assistant without being a member of the group eligible for license assignment, resulting in Error 1420.

Solution
Solution: By using the API to explicitly assign licenses on a per-user basis, you can assign licenses to the target user without relying on group assignments when signing into the Assistant.

Resolution Steps:

  1. Confirm that licenses are assigned to the Automation Users group.

  2. Confirm that the group addition API returns 200 OK.

  3. Confirm that the membership of the group with license assignment rules cannot be verified from the processing side.

  4. Use the PUT {URL}/lease_/api/account/{accountId}/user-license endpoint to explicitly assign licenses on a per-user basis.