Sun Java System Portal Server 7 Command-Line Reference

Examples

Example for adding attributes:

psadmin set-attribute -u amadmin -f password-file --component desktop -p myPortal --attribute-name AuthorizedAuthlessUserIds --add '"val1" "val2" "val3"'

3 values, val1, val2 and val3 will be added to the existing list

Example for removing attributes:

psadmin set-attribute -u amadmin -f password-file --component desktop -p myPortal --attribute-name AuthorizedAuthlessUserIds --remove '"val1" "val2" "val3"'

The 3 values, val1, val2 and val3 will be removed from the existing list.

Example for using the set_values operand:

psadmin set-attribute -u amadmin -f password-file --component desktop -p myPortal --attribute-name AuthorizedAuthlessUserIds '"a1" "a2" "a3"'

The existing list will be replaced by 3 values, a1, a2 and a3.