The following tasks are available for user management in Chef Infra Server:
The Chef Infra Server includes a command-line utility named chef-server-ctl. This command-line tool is used to start and stop individual services, reconfigure the Chef Infra Server, run chef-pedant, and then tail Chef Infra Server log files.
Use the user-create, user-delete, user-edit, user-list and user-show subcommands to manage users.
The org-create subcommand is used to create an organization. (The validation key for the organization is returned to STDOUT when creating an organization with this command.)
This subcommand has the following syntax:
chef-server-ctl org-create ORG_NAME "ORG_FULL_NAME" (options)
where:
chef."Chef Software, Inc.".This subcommand has the following options:
-a USER_NAME, --association_user USER_NAME
Associate a user with an organization and add them to the admins and billing_admins security groups.
-f FILE_NAME, --filename FILE_NAME
Write the ORGANIZATION-validator.pem to FILE_NAME instead of printing it to STDOUT.
The org-delete subcommand is used to delete an organization.
This subcommand has the following syntax:
chef-server-ctl org-delete ORG_NAME
The org-list subcommand is used to list all of the organizations currently present on the Chef Infra Server.
This subcommand has the following syntax:
chef-server-ctl org-list (options)
This subcommand has the following options:
-a, --all-orgs
Show all organizations.
-w, --with-uri
Show the corresponding URIs.
The org-show subcommand is used to show the details for an organization.
This subcommand has the following syntax:
chef-server-ctl org-show ORG_NAME
Warning
org-associate. This is the same command, with the exception of the --admin flag, which is added to the command (along with the rename) for the upcoming final release of Chef Server 12. The org-user-add subcommand is used to add a user to an organization.
This subcommand has the following syntax:
chef-server-ctl org-user-add ORG_NAME USER_NAME (options)
This subcommand has the following options:
--adminAdd the user to the admins group.
The org-user-remove subcommand is used to remove a user from an organization.
This subcommand has the following syntax:
chef-server-ctl org-user-remove ORG_NAME USER_NAME (options)
The user-create subcommand is used to create a user. (The validation key for the organization may be returned to STDOUT when creating a user with this command.)
This subcommand has the following syntax:
chef-server-ctl user-create USER_NAME FIRST_NAME [MIDDLE_NAME] LAST_NAME EMAIL 'PASSWORD' (options)
This subcommand has the following options:
-f FILE_NAME, --filename FILE_NAME
Write the USER.pem to a file instead of STDOUT.
The user-delete subcommand is used to delete a user.
This subcommand has the following syntax:
chef-server-ctl user-delete USER_NAME
The user-edit subcommand is used to edit the details for a user. The data will be made available in the $EDITOR for editing.
This subcommand has the following syntax:
chef-server-ctl user-edit USER_NAME
The user-list subcommand is used to view a list of users.
This subcommand has the following syntax:
chef-server-ctl user-list (options)
This subcommand has the following options:
-w, --with-uri
Show the corresponding URIs.
The user-show subcommand is used to show the details for a user.
This subcommand has the following syntax:
chef-server-ctl user-show USER_NAME (options)
This subcommand has the following options:
-l, --with-orgs
Show all organizations.
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/server_users/