Re: Roles - Users



thejamie (thejamie@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
There is a user in a developer role who has been here since before we
changed our domain name. This developer has less permission on the
server than other developers. Developer is a domain level group.

All domain information was ported from the old domain to new domain (per
netadmin) more than a year ago. On the database server, there are legacy
applications that "may" be using the old domain logins. We have many
"partners".

I can't devise an accurate method to determine this legacy usage so I have
not shut down the legacy logins that are indeterminate. Meanwhile, it is
possible (I think) that this developer may have permissions limited by
association with the legacy domain permissions on the server.

How can I narrow this down?

Or, for example, can I add a role with "developer" permissions and then
add the user's login to the role?

Depends. If the developer's permissions are constrained by DENY to some
role he belongs to, that may be difficult.

Since you say that Developer is a domain-level group, I assume that
this is a Windows group, and access have been granted to this group?

Are you on SQL 2000 or SQL 2005? This query is for SQL 2005:

select u.name, r.name
from sys.database_principals u
join sys.database_role_members rm
on u.principal_id = rm.member_principal_id
join sys.database_principals r
on r.principal_id = rm.role_principal_id
where u.name = '@user

It lists the database roles, the user is a member of. But if there
is a lot of stuff granted to Windows groups, you need to examine which
Windows groups he is a member of.



--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: SQL server 2000 C/S
    ... In regards to the developer edition, If I install it on client ... is true that installing SQL Server 2000 ...
    (microsoft.public.sqlserver.server)
  • Re: Roles - Users
    ... Developer is a domain level group. ... association with the legacy domain permissions on the server. ... Windows groups he is a member of. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (microsoft.public.sqlserver.security)
  • Re: SQL 2005 Developer Licensing question
    ... A developer license is valid for any server ... for a Development server, an Integration/Staging server, even a QA/Test ... and/or Tester has a Developer Edition License ... Each license of SQL Server 2005 Developer Edition entitles one developer to ...
    (microsoft.public.sqlserver.setup)
  • Security strategy: Access client/SQL Server
    ... I will be creating an application using MS Access as a client to SQL ... SQL Server resides. ... permissions for group X to open form A, users would need to get a new ...
    (comp.databases.ms-access)
  • Re: Give yourself SQL Administrator rights
    ... Even if you change the default settings to allow updates to ... permissions to this user on sysxlogins. ... Only members of the server roles sysadmin and serveradmin ... SQL Server DBAs may wish to disable 'allow ...
    (microsoft.public.sqlserver.security)