Hi @Ashok Arumugam,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
Yes, integrating Azure Active Directory (AAD) with Azure Cosmos DB using the MongoDB API is possible. Here are the steps you’ll need to follow:
- Set up an Azure AD application and service principal. This will be used for authentication.
- Configure your Cosmos DB account: Enable the RBAC capability by adding the EnableMongoRoleBasedAccessControl capability to your database account.
- Assign roles to users: Use the Azure CLI, Azure PowerShell, or Azure Resource Manager (ARM) to manage users and roles within your database.
For more information, please refer the document: https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/how-to-setup-rbac
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.