August 30, 2017 at 12:30 pm
Hi Team,
I have a user who has securityadmin server role and db_securityadmin permission on the databases as well.
However, when this user trying creating new user and map to user database, getting the below error. Any idea what causing this.
Error:
Create failed for User 'domain\username'.
Additional Info:
An exception occurred while executing Transact-SQL statement or batch.
User does not have permission to perform this action.(Microsoft SQL Server, Error: 15247)
Regards,
SQLisAwe5oMe.
August 30, 2017 at 1:05 pm
SQLisAwE5OmE - Wednesday, August 30, 2017 12:30 PMHi Team,
I have a user who has securityadmin server role and db_securityadmin permission on the databases as well.
However, when this user trying creating new user and map to user database, getting the below error. Any idea what causing this.
Error:
Create failed for User 'domain\username'.
Additional Info:
An exception occurred while executing Transact-SQL statement or batch.
User does not have permission to perform this action.(Microsoft SQL Server, Error: 15247)
That user would also need db_accessadmin to add (or remove) access to the database itself.
Sue
August 30, 2017 at 1:13 pm
Thanks Sue.
So, you are saying a user with securityadmin server role and db_securityadmin db role is not enough to create/add a permission to another user without db_accessadmin privilege ?
Regards,
SQLisAwe5oMe.
August 30, 2017 at 1:25 pm
SQLisAwE5OmE - Wednesday, August 30, 2017 1:13 PMThanks Sue.So, you are saying a user with securityadmin server role and db_securityadmin db role is not enough to create/add a permission to another user without db_accessadmin privilege ?
db_accessadmin can add (or remove) users to the database, db_securityadmin cannot. They do two different things.
Whatever it is you want that user to be able to do, you may not not need db_securityadmin and it can be more of a non-intended security risk. Check the Microsoft documentation and make sure to read the specific around what each role can do:
Database-Level Roles
Sue
August 30, 2017 at 1:32 pm
Sue_H - Wednesday, August 30, 2017 1:25 PMSQLisAwE5OmE - Wednesday, August 30, 2017 1:13 PMThanks Sue.So, you are saying a user with securityadmin server role and db_securityadmin db role is not enough to create/add a permission to another user without db_accessadmin privilege ?
db_accessadmin can add (or remove) users to the database, db_securityadmin cannot. They do two different things.
Whatever it is you want that user to be able to do, you may not not need db_securityadmin and it can be more of a non-intended security risk. Check the Microsoft documentation and make sure to read the specific around what each role can do:
Database-Level RolesSue
Thanks Sue, appreciate it.
Regards,
SQLisAwe5oMe.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply