sys.server_principals lists the (server-)logins. Database users are not found in this view, they're found in database_principals default_database_name shows a login's default database. principal_id and sid identify the principal. These can be converted to the principal's name with suser_name and suser_sname, respectively: select name, suser_name(principal_id), suser_sname(sid) from sys.server_principals
sid is equal this user's security identifier.