GetUserUnixProfileByDN

Returns the UNIX profile for a user in the zone using the distinguished name (DN) of the profile.

Syntax

IUserUnixProfile GetUserUnixProfileByDN(string dn)

Parameter

Specify the following parameter when using this method:

Parameter Description
dn The distinguished name (DN) of the user profile.

Return value

The user profile with the distinguished name (DN) matching the distinguished name specified, or null if no matching user profile is found.

Discussion

The user profile is the service connection point associated with the Active Directory user object.

Exceptions

GetUserUnixProfileByDN throws a NotSupportedException if the zone schema is not supported.

Example

The following code sample illustrates using this method in a script:

...  
'Specify the zone you want to work with  
set objZone =
cims.GetZoneByPath("LDAP://CN=default,CN=zones,CN=centrify,CN=program
data,DC=arcade,DC=com")  
'Get the user profile by DN  
set objComputer=
objZone.GetUserUnixProfileByDN(“CN=yuji,CN=Users,CN=default,CN=Zones,CN=centrify,CN=program
data,DC=arcade,DC=com")  
...