Call the GetRemoteDatabaseUser method to retrieve the rights for an existing user to an existing database on a database server. Use the DatabaseName parameter to specify the existing database name and the AuthorizedUser parameter to specify the existing user.
This method is valid for both administrative and regular data connections. However, for regular data connections this method is only valid if the AuthorizedUser parameter matches that of the CurrentRemoteUser property.