Cannot add the principal 'XXXX', because it does not exist or you do not have permission.

Jianjun Lv 20 Reputation points Microsoft Employee
2023-07-19T07:41:59.89+00:00

When I run the command

ALTER ROLE db_datareader ADD MEMBER "XXXX"

It showed the error

Cannot add the principal 'XXXX', because it does not exist or you do not have permission.

But I'm very sure The server principal 'XXXX' already exists. and the account has the permission.

User's image

User's image

User's image

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,378 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jianjun Lv 20 Reputation points Microsoft Employee
    2023-07-22T07:32:25.41+00:00

    Thanks so much. I switched to another branch and the command works. I don't think I have the permission to run this command in master branch but can run it in other branch. Thank you guys again.

    0 comments No comments

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.