# SP: Azure AD SAML configuration for aqua SSO

Azure AD SAML configuration for aqua SSO

1\. Create an application in Azure AD as Non-Gallery and assign it a custom name. This name will later be required as the Entity ID, which we will add in aqua. [See Microsoft documentation for instructions.](https://learn.microsoft.com/en-us/entra/identity/saas-apps/saml-toolkit-tutorial)

2\. Configure the URLs:

![Edit Basic SAML Configuration](/files/yShvoKDl2xQ2TdeSvsA8)

• Login URL: https\://\<aqua-server>/aquaWebNG/Account/saml2-acs

• Logout URL: https\://\<aqua-server>/aquaWebNG/Account/saml2-logout

3\. aqua allows login only via username. If the username should be defined as the beginning of the email address (everything before '@'), a new claim with \`extractmailprefix\` from \`user.principalname\` must be added and a transformation applied. [See documentation for additional claims.](https://learn.microsoft.com/en-us/entra/identity-platform/saml-claims-customization)

Then you need to provide us with the **full claim name**. It usually starts with *<http://schemas.xmlsoap.org>...*

4\. The XML metadata file and certificates (at the moment aqua only supports the metadata having one certificate inside, the one that is used for signing the saml response) must also be provided if they are not globally trusted.

![](/files/2TDxannqCk87vGFYEGS5)


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aqua-cloud.io/documentation/integrations/sso/sp-azure-ad-saml-configuration-for-aqua-sso.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
