how to give entra Id access to azure sql database

Ray, David 0 Reputation points
2024-02-07T20:59:57.32+00:00

give Entra Id access to azure sql database to another user

Azure SQL Database
{count} votes

2 answers

Sort by: Most helpful
  1. Nandan Hegde 36,146 Reputation points MVP Volunteer Moderator
    2024-02-08T03:44:22.64+00:00

    Please follow the below blog : https://michalmolka.medium.com/azure-sql-database-add-azure-active-directory-users-5c08f0249dfa which provides step by step details

    0 comments No comments

  2. Oury Ba-MSFT 20,911 Reputation points Microsoft Employee Moderator
    2024-02-08T04:03:50.3433333+00:00

    @Ray, David
    Thank you for reaching out. My understanding is that you are trying to give another user access to an Azure SQL Database using Microsoft Entra ID. Connect to the SQL database as the Microsoft Entra admin, or a Microsoft Entra user with sufficient SQL permissions to create users. Run the below command.

    CREATE USER [<guest_user>] FROM EXTERNAL PROVIDER;
    

    You can assign role to the user.

    ALTER ROLE [dbmanager] ADD MEMBER [AzureAD_object];
    

    Tutorial: Create and utilize Microsoft Entra server logins If you encounter any issues, comment below so we can further assist. Regards, Oury


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.