Adding a User to an OCI Cache Cluster

Assign an OCI Cache user to an OCI Cache cluster.

When assigning a cache user to a cluster, OCI Cache considers the following lifecycle states:
  • Users can only be added when their status is Active. Users in the Updating or Failed states aren't eligible for inclusion.
  • ⁠Users not in an Active state don't appear in the Console or Terraform configurations.
When adding users, note the following points:
  • Adding a user with the username "default" to a cluster overrides the system-defined default user created during the initial setup.
  • You can't add more than one user with the same username to a cluster.
    1. On the Clusters list page, select the cluster that you want to work with. If you need help finding the list page or the cluster, see Listing OCI Cache Clusters.
    2. On the cluster's details page, select Users.
      All cache users assigned to the cluster are displayed in a table.
    3. In the Users section, select Add cache users.
    4. In the Add cache users panel, select those cache users you want to assign to the cluster.
      Note

      If a cache user is already assigned to the cluster, it's not listed in the panel.
    5. Select Add cache users.
    The cache users you added are included in the cluster's Users list.
  • Use the oci redis redis-cluster redis-cluster attach command and required parameters to assign a cache user to a cluster:

    oci redis redis-cluster redis-cluster attach --oci-cache-users <json_file_or_string> --redis-cluster-id <cluster_OCID> [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the AttachOciCacheUsers operation to assign a cache user to a cluster.