IsReadable
Indicates whether the user profile object in Active Directory is readable for the current user credentials.
Syntax
bool IsReadable {get;}
Property value
Returns true if the UserUnixProfile object is readable, or false if the object is not readable.
Discussion
This property returns a value of true if the user accessing the user profile object in Active Directory has sufficient permissions to read its properties.
Example
The following code sample illustrates using IsReadable in a script:
... 'Get the zone object Set objZone = cims.GetZone("ajax.org/UNIX/Zones/pilot") 'Get the Active Directory user object set objUser = cims.GetUser("ajax.org/Users/pat.hu") 'Get the UNIX profile for the user profile = objUser.UnixProfileByUid(10001) 'Check whether the user’s UNIX profile is readable if not profile.IsReadable then wScript.Echo “No permission to read the UNIX profile!” else wScript.Echo “UNIX login name: ” & profile.Name end if ...