// This file is autogenerated, DO NOT EDIT
// security/authentication/configuring-kerberos-realm.asciidoc:179

[source, python]
----
resp = client.security.put_role_mapping(
    name="kerbrolemapping",
    roles=[
        "monitoring_user"
    ],
    enabled=True,
    rules={
        "field": {
            "username": "user@REALM"
        }
    },
)
print(resp)
----
