Chef Adding a user to organization

In Chef, if you have created an organization and want to add user to that, here is the command :

sudo orc-server-ctl org-user-add <org> <user>

Check whether a particular user has access to an organization :

sudo knife raw /association_requests -s "https://<hostfqdn>/organizations/myorg" -u admin -k /home/abcd/.chef/admin.pem

Some of the commands related to org or user related :

org-create

    Create an organization in the Chef Infra Server.

  org-delete

    Delete an organization in the Chef Infra Server.

  org-list

    List all organizations in the Chef Infra Server.

  org-show

    Show an organization in the Chef Infra Server.

  org-user-add

    Associate a user with an organization.

  org-user-remove

    Dissociate a user with an organization.

  password

    Set a user’s password or System Recovery Password.

  user-create

    Create a user in the Chef Infra Server.

  user-delete

    Delete a user in the Chef Infra Server.

  user-edit

    Edit a user in the Chef Infra Server.

  user-list

    List all users in the Chef Infra Server.

  user-show

    Show a user in the Chef Infra Server.

Leave a comment