﻿---
title: stack es security cli namespace
description: Elasticsearch security API commands 
url: https://www.elastic.co/elastic/docs-builder/docs/4075/reference/elastic-cli/cli/stack/es/security
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack es security cli namespace
```bash
elastic stack es security --help
```

Elasticsearch security API commands

## Commands

<page-card>
  Activate a user profile.
</page-card>

<page-card>
  Authenticate a user.
</page-card>

<page-card>
  Bulk delete roles.
</page-card>

<page-card>
  Bulk create or update roles.
</page-card>

<page-card>
  Bulk update API keys.
</page-card>

<page-card>
  Change passwords.
</page-card>

<page-card>
  Clear the API key cache.
</page-card>

<page-card>
  Clear the privileges cache.
</page-card>

<page-card>
  Clear the user cache.
</page-card>

<page-card>
  Clear the roles cache.
</page-card>

<page-card>
  Clear service account token caches.
</page-card>

<page-card>
  Clone an API key.
</page-card>

<page-card>
  Create an API key.
</page-card>

<page-card>
  Create a cross-cluster API key.
</page-card>

<page-card>
  Create a service account token.
</page-card>

<page-card>
  Delegate PKI authentication.
</page-card>

<page-card>
  Delete application privileges.
</page-card>

<page-card>
  Delete roles.
</page-card>

<page-card>
  Delete role mappings.
</page-card>

<page-card>
  Delete service account tokens.
</page-card>

<page-card>
  Delete users.
</page-card>

<page-card>
  Disable users.
</page-card>

<page-card>
  Disable a user profile.
</page-card>

<page-card>
  Enable users.
</page-card>

<page-card>
  Enable a user profile.
</page-card>

<page-card>
  Enroll Kibana.
</page-card>

<page-card>
  Enroll a node.
</page-card>

<page-card>
  Get API key information.
</page-card>

<page-card>
  Get builtin privileges.
</page-card>

<page-card>
  Get application privileges.
</page-card>

<page-card>
  Get roles.
</page-card>

<page-card>
  Get role mappings.
</page-card>

<page-card>
  Get service accounts.
</page-card>

<page-card>
  Get service account credentials.
</page-card>

<page-card>
  Get security index settings.
</page-card>

<page-card>
  Get security stats.
</page-card>

<page-card>
  Get a token.
</page-card>

<page-card>
  Get users.
</page-card>

<page-card>
  Get user privileges.
</page-card>

<page-card>
  Get a user profile.
</page-card>

<page-card>
  Grant an API key.
</page-card>

<page-card>
  Check user privileges.
</page-card>

<page-card>
  Check user profile privileges.
</page-card>

<page-card>
  Invalidate API keys.
</page-card>

<page-card>
  Invalidate a token.
</page-card>

<page-card>
  Authenticate OpenID Connect.
</page-card>

<page-card>
  Logout of OpenID Connect.
</page-card>

<page-card>
  Prepare OpenID connect authentication.
</page-card>

<page-card>
  Create or update application privileges.
</page-card>

<page-card>
  Create or update roles.
</page-card>

<page-card>
  Create or update role mappings.
</page-card>

<page-card>
  Create or update users.
</page-card>

<page-card>
  Find API keys with a query.
</page-card>

<page-card>
  Find roles with a query.
</page-card>

<page-card>
  Find users with a query.
</page-card>

<page-card>
  Authenticate SAML.
</page-card>

<page-card>
  Logout of SAML completely.
</page-card>

<page-card>
  Invalidate SAML.
</page-card>

<page-card>
  Logout of SAML.
</page-card>

<page-card>
  Prepare SAML authentication.
</page-card>

<page-card>
  Create SAML service provider metadata.
</page-card>

<page-card>
  Suggest a user profile.
</page-card>

<page-card>
  Update an API key.
</page-card>

<page-card>
  Update a cross-cluster API key.
</page-card>

<page-card>
  Update security index settings.
</page-card>

<page-card>
  Update user profile data.
</page-card>