> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/finding-rules-by-name/rolemapping.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Rolemapping

### Synopsis

| Field           | Value                      |
| --------------- | -------------------------- |
| Rule Type       | Finding                    |
| Finding Type    | Rolemapping is not enabled |
| Finding ID      | 160000234                  |
| Severity        | Low                        |
| Category        | CONFIGURATION              |
| Platform Module | SSPM                       |
| Asset Types     | DATADOG\_TENANT            |

### Description

When enabled, users logging in with SAML to your Datadog account will be stripped of their current roles and reassigned to new roles based on the details in their SAML assertion passed on from your Identity Provider, and the mappings listed below. Users who log in with SAML and do not have the values that map to a Datadog role will be stripped of all roles and will not be allowed to log in. Recommended Value: Should not be equal to \[ ]

### Remediation

Remediation Instructions:

1. Cross-reference and validate your SAML assertion to understand your IdP’s attributes.
2. Go to Organization Settings and click the SAML Group Mappings tab.
3. If it is visible, ensure the Role Mappings tab is selected.
4. Click New Mapping. A dialog box appears.
5. Specify the SAML identity provider key-value pair that you want to associate with an existing Datadog role (either default or custom). Note: These entries are case-sensitive. For example, if you want all users whose member\_of attribute has a value of Development to be assigned to a custom Datadog role called Devs:
6. If you have not already done so, enable mappings by clicking Enable Mappings.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/finding-rules-by-name/rolemapping.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
