Determines whether the preference that is associated with the given key is read only. This function returns a value of false if the preference can be changed or if the key is unknown.
portalLib.isPreferenceReadOnly(
key STRING in)
returns (value BOOLEAN)
isReadOnly Boolean = portalLib.isPreferenceReadOnly("username");