GetUserUnixProfileByUid
Returns the UNIX profile for a user in this computer zone given the user identifier (UID).
Syntax
IHierarchicalUser GetUserUnixProfileByUid(int uid)
IHierarchicalUser GetUserUnixProfileByUid(long uid)
Parameter
Specify the following parameter when using this method:
Parameter | Description |
---|---|
uid
|
The user identifier (UID) associated with the Active Directory user. |
Return value
The user profile for the specified UID in the computer zone, or null
if none is
found.
Discussion
If there are multiple user profiles with the UID specified, this method returns
only the first user profile found. To find all user profiles with a specific
UID, use the GetUserUnixProfiles
method to return the collection of profiles for
a computer, then search the collection for the UID.
Exceptions
GetUserUnixProfileByUid
may throw one of the following exceptions:
-
ArgumentException
if you specify a negative UID. -
NotSupportedException
if the computer zone schema is not supported.