GetSecondaryUsers
Returns the secondary profiles for the specified user.
Syntax
IUserUnixProfiles GetSecondaryUsers(DirectoryEntry userDE)
IUserUnixProfiles GetSecondaryUsers(SearchResult userSR)
IUserUnixProfiles GetSecondaryUsers(string userDn)
IUserUnixProfiles GetSecondaryUsers(IAdsUser userIAds)
Parameters
Specify one of the following parameters when using this method.
Parameter | Description |
---|---|
userDE
|
The directory entry for the user for which you want the secondary profiles. |
userSr
|
The directory entry for a user specified as a search result. |
userDn
|
The user specified as a distinguished name. |
userIads
|
The IADs interface to the user. |
Return value
The collection of secondary user UNIX profiles.
Discussion
The primary profile is the profile at the highest level in the zone hierarchy where the user’s profile is defined. All or part of the primary profile can be overridden by secondary profiles farther down in the hierarchy.
The GetSecondaryUsers(DirectoryEntry userDE)
and GetSecondaryUsers(SearchResult userSr)
methods are available only for .NET-based programs.
Exceptions
GetSecondaryUsers
throws an ArgumentNullException
if the specified parameter
value is null
or the user does not exist.