I want to grant role1 to test. Now test has user dbo in the database. When I tried to grant this role to test/dbo there is error:
"Add member failed for databaserole 'role1'
.....
cannot user special principal 'dbo' (... Error 15405).
In SSMS, I right clicked login name, in properties selected user mapping, selected database, selected that role. When I clicked OK there is above error. Any help?
This is happening because the user 'test' is the actual owner of the database - as such, they can only have db_owner, and cannot be assigned any further database roles.
Nor do they need to be. If they're the DB owner, they already have permission to do anything they want to within this database.