zcli auth-profile commands, with syntax and examples for each operation. An authentication profile determines how users of your enterprise sign in: either with ZEDEDA-native (local) credentials under a password policy that you define, or through an external OIDC-compliant Identity Provider. In the Edge Infrastructure Services console this object is the External Authentication Profile; ZCLI calls it an authorization profile, which is why the command family is auth-profile.
This page is the command reference. For the end-to-end single sign-on setup procedure, including realms, child-enterprise inheritance, role mapping, and troubleshooting, see Enable Single Sign-On.
Before You Start
- ZCLI is installed and authenticated against your enterprise. See Get Started.
- You have the SysManager or SysAdmin role in your enterprise. See Manage Roles. [TBD: verify whether SysRoot is required; the source article lists SysRoot privileges as the prerequisite.]
- For GUI-based authentication management, see Enable Single Sign-On and Manage Users.
Profile Types
ZCLI supports two profile types. You set the type with--type when you create the profile, and you cannot change it afterwards. To switch types, create a new profile.
An enterprise can hold several authentication profiles, but only one profile can be active at a time. Use
--active to put a profile into service and --test-only to validate its credentials without putting it into service.
Password policy applies at the enterprise level. You cannot set different password expiry conditions for individual users. If different groups of users need different conditions, place them in separate enterprises.
Password Policy Parameters
Alocal profile requires all ten password parameters. You can pass them inline as flags or supply them in a JSON file with --password-config. ZCLI validates the values before it sends the request and rejects the command if any value is missing or out of range.
The following is an example
passwordconfig.json file for --password-config:
Manage Authentication Profiles
Create an authentication profile
Create a profile of typelocal or oauth. A local profile takes the password policy, either inline or from a config file. An oauth profile takes the client ID, client secret, and OpenID Connect endpoint from your Identity Provider.
When you create a
local profile, ZCLI always disables automatic user creation and does not attach a default role, because local users are created explicitly by an administrator. An update can turn automatic user creation back on. See Update an authentication profile.
Example of an OAuth profile that is activated immediately:
View an authentication profile
List all profiles in the enterprise, filter the list by a name substring, or show one profile by name or UUID.
Example of listing every profile:
disableAutoUserCreate field, use the global --format=raw option:
Update an authentication profile
Change the settings of an existing profile. ZCLI retrieves the current record, applies the values you pass, and writes the whole record back. You cannot change the profile type; create a new profile instead.- Every update rewrites the
activeandtest-onlysettings of the profile. If you omit--activefrom an update command, the profile becomes inactive. Pass--activeon every update to a profile that must stay in service. - For a
localprofile, you only need to pass the password parameters that you want to change. ZCLI validates the merged policy against the allowed ranges before it sends the update. - For an
oauthprofile,--client-secretis required on every update, because the secret is not returned by theshowcommand and cannot be carried over. - Every update also rewrites the automatic user creation setting, for both
localandoauthprofiles. Passing--disable-auto-userturns automatic user creation off. Omitting it turns automatic user creation on, even for alocalprofile that was created with it off. Pass--disable-auto-useron every update to alocalprofile, and on every update to anoauthprofile that must not create users automatically. --default-rolesets the role attached to users who are created automatically, as it does on create.- In the current version of ZCLI,
zcli auth-profile updateignores--jwt-algorithm. The command succeeds, but the JWT algorithm of the profile does not change. ZCLI sends--jwt-algorithmonly when you create a profile, so choose the algorithm when you runzcli auth-profile create.
Delete an authentication profile
Delete a profile by name. ZCLI asks for confirmation unless you pass-f. Deleting the active OAuth profile disables single sign-on for the enterprise, and local user creation becomes available again.
Next Steps
Enable Single Sign-On
End-to-end OIDC setup, including realms, enterprise inheritance, and role mapping.
Manage Users
Create local users and review users provisioned through SSO.
Manage Roles
Create and assign the roles referenced by
--default-role.Overview
All ZCLI command procedures, organized by resource type.