======
Groups
======

A group connects resources (packages, etc.) to the members/users associated with that group. Owners can manage member permissions for group members.

Creating groups
===============

You can create a group to customize access for a group of users. 

View your existing groups by clicking your profile in the top-right corner and selecting **Groups** in the dropdown.

Follow these steps to create a group:

#. From your profile in the top-right corner, switch to an organization you have created by selecting **Switch to...**.
#. From your profile, select **Groups**.
#. Click **+New Group**.

   .. note::
      
      If **+New Group** is not present on this page, you may be in your default profile rather than in an organization. If the title of this **Groups** page reads "group membership" rather than "groups", you need to switch to an organization or make one if you have not done so.

#. Give the group a name without any spaces, then click **Create group**.

.. _org-groups:

Customizing users and groups
============================

Follow these steps to add, remove, or edit group and user access for an organization you administer:

#. From your profile in the top-right corner, select the desired organization profile under **Switch to...**.
#. From your profile, select **Groups**.
#. Select the group you want to customize. 

From this group page, you can:

* Add and delete group members
* Change the group name
* Adjust permissions for group members
* Delete the group
* Add and delete packages

Adding group members
--------------------

#. Navigate to the **Group** page at ``https://anaconda.org/<ORGANIZATION>/groups/<GROUP>``, where ``<ORGANIZATION>`` is the organization name and ``<GROUP>`` is the group name.
#. Under **Members**, enter a member's username, then click **Add**.

Users receive a dashboard notification on Anaconda.org when you add them to an organization.

Changing a group name
---------------------

#. Navigate to the **Group** page at ``https://anaconda.org/<ORGANIZATION>/groups/<GROUP>``, where ``<ORGANIZATION>`` is the organization name and ``<GROUP>`` is the group name.
#. Select **Settings**.
#. Under **Name**, enter a new group name, then click **Save**.


Adjusting group member permissions
----------------------------------

#. Navigate to the **Group** page at ``https://anaconda.org/<ORGANIZATION>/groups/<GROUP>``, where ``<ORGANIZATION>`` is the organization name and ``<GROUP>`` is the group name.
#. Select **Settings**.
#. Under **Permissions**, select your desired permission level, then click **Save**.

There are three types of permissions you can grant:

* **Read Only**: Provides access only to the packages. Users in a read-only group can see the list of files within a package and can install them through conda.
* **Read-Write**: Provides access to upload new versions of an existing package, delete files of a package, and manage the individual labels of files. Users in a read-write group cannot upload files for non-existing packages, delete or transfer the package, or lock/unlock labels.
* **Administration**: Provides access to everything except uploading new packages (admin users can still upload to an existing package) and locking/unlocking labels.

Deleting a group
----------------

#. Navigate to the **Group** page at ``https://anaconda.org/<ORGANIZATION>/groups/<GROUP>``, where ``<ORGANIZATION>`` is the organization name and ``<GROUP>`` is the group name.
#. Select **Settings**.
#. At the bottom of the page, click **Remove Group**.

Adding packages
---------------

#. Navigate to the **Group** page at ``https://anaconda.org/<ORGANIZATION>/groups/<GROUP>``, where ``<ORGANIZATION>`` is the organization name and ``<GROUP>`` is the group name.
#. Select **Packages**.
#. Enter the name of the package you want to add in the **Package name** cell, then click **Add**. If you want to add all of the packages in the organization to your group, click **Add all Packages**.