SQL Flow Field Guide

sys.xp_logininfo

Check SQL Server version support in the source

xplogininfo returns information about Windows users and Windows groups.

What changes

Input
Not stated in the Microsoft summary.
Output or change
Not stated in the Microsoft summary.

Syntax at a glance

sys.xp_logininfo
    [ [ @acctname = ] N'acctname' ]
    [ , [ @option = ] { 'all' | 'members' } ]
    [ , [ @privilege = ] 'privilege' OUTPUT ]
[ ; ]

Work example

xplogininfo returns information about Windows users and Windows groups.

Read the permission and security notes. Describe the host or instance effect without running the procedure.

Check your work Which external resource or server capability could this procedure reach?

Open Microsoft Learn for full syntax, permissions, and details for your version.