An attempt to enroll a client in an Advanced Server Access (ASA) or Okta Privileged Access (OPA) team results in the following error if an incorrect team or syntax is used.
error: You are not authorized to perform this operation
- Advanced Server Access (ASA)
- Okta Privileged Access (OPA)
- Client Enrollment
- Okta Classic Engine
- Okta Identity Engine (OIE)
This error happens if an invalid team name is used or if either the --url or --team arguments are omitted when enrolling in an OPA team.
For client enrollment in an OPA team, the correct sft enroll command can be found in the UI at the top of the Directory > Clients page.
The syntax is:
sft enroll --url https://<OktaOrgSubdomain>.pam.[okta|oktapreview].com --team <OPA_Team_Name>
