- [Security Plugin](#security-plugin)
- [Create a Role](#create-a-role)
- [Get a Role](#get-a-role)
- [Create a User](#create-a-user)
- [Get a User](#get-a-user)
### Security Plugin
The [Security Plugin API](https://opensearch.org/docs/latest/security/access-control/api/) lets you programmatically create and manage users, roles, role mappings, action groups, and tenants.
#### Create a Role
```python
role_name = "test-role"
role_content = {
"cluster_permissions": ["cluster_monitor"],
"index_permissions": [
{
"index_patterns": ["index", "test-*"],
This file has been truncated. show original