IsWritable
Indicates whether the user profile object is writable for the current user’s credentials.
Syntax
bool IsWritable {get;}
                                                    
Property value
Returns true if the UnixUserProfile object is writable, or false if the object
is not writable.
Discussion
This property returns a value of true if the user accessing the user profile
object in Active Directory has sufficient permissions to change the user profile
object’s properties.
Example
The following code sample illustrates using IsWritable 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 writable
if not profile.IsWritable then
wScript.Echo “No permission to change the UNIX profile!”
end if
...