GetUserUnixProfileByName

Returns the UNIX user profile associated with the specified user name in the zone.

Syntax

IUserUnixProfile GetUserUnixProfileByName(string name)

Parameter

Specify the following parameter when using this method:

Parameter Description
name The user’s UNIX login name.

Return value

The UserUnixProfile object associated with the specified user name in the zone, or null if the UserUnixProfile is not found.

Exceptions

GetUserUnixProfileByName may throw one of the following exceptions:

  • NotSupportedException if the zone schema is not supported.

  • ApplicationException if there is more than one instance of the specified user in the zone.

Example

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

...  
'Specify the zone you want to work with  
set objZone = cims.GetZone("ajax.org/UNIX/Zones/test_lab")  
'Display the UNIX profile for the group “jae”  
wScript.Echo objZone.GetUserUnixProfileByName(“jae”)  
...