xp_enumgroups Extended Stored Procedure

Provides a list of local Windows NT - based groups or a list of groups defined in a specified Windows NT domain.

Syntax

xp_enumgroups [domain_name]

where

domain_name
Is the name of the Windows NT domain to enumerate a list of groups for.

Remarks

The xp_enumgroups extended stored procedure enumerates the global groups in a domain. If domain_name is the name of the Windows NT - based computer on which SQL Server is running, xp_enumgroups enumerates the computer's local groups. If no domain name is specified, the computer's local groups are enumerated.

Example

This example enumerates the groups in the salesdomain domain.

xp_enumgroups salesdomain

Permission

Execute permission defaults to the system administrator and can be granted to other users.

See Also

xp_grantlogin xp_logininfo
xp_loginconfig xp_revokelogin