Creating an OCI Cache User

Create an OCI Cache user to manage your applications more securely and effectively using OCI Cache ACL functionality.

    1. On the Cache users list page, select Create cache user. If you need help finding the list page, see Listing OCI Cache Users.
    2. From the Create cache user panel, enter the following information:
      • Username: Accept the prefilled name or enter a friendly name for the cache user.
      • Description: Enter a description of the cache user.
      • Create in compartment: Select the compartment where the cache user resides from the list.
      • Access string: Enter the access string for the OCI Cache ACL. For example:

        allkeys +get -set

        For more information about using access strings with OCI Cache, see OCI Cache User ACL Strings.

      • Authentication mode: Select one of the following authentication options:
      • User status: Enable the cache user. The cache user can only access the associated clusters when the status is On.
      • Tagging: If you have permissions to create a resource, then you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags. If you're not sure whether to apply tags, skip this option or ask an administrator. You can apply tags later.
    3. Select Create cache user.
    The cache user you created appears in the Users list.
  • Use the oci redis oci-cache-user create-oci-cache-user-details create-oci-cache-user command and required parameters to create a cache user:

    oci redis oci-cache-user create-oci-cache-user-details create-oci-cache-user --acl-string <text> --authentication-mode <json_file_or_string> --compartment-id <compartment_OCID> --description <text> --name <text> [OPTIONS]

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

  • Run the CreateOciCacheUser operation to create a cache user.