This chapter describes the subcommands used for managing the Sun Java System Portal Server software communities through command-line. This chapter lists the following subcommands:
This subcommand list all the communities.
psadmin list-communities --adminuser uid [--passwordfile password-filename] --portal portal-ID [--search search-pattern] [--verbose]
psadmin list-communities -u uid [-f password-filename] -p portal-ID [-s search-pattern] -v
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
The following options are optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
Specifies a pattern for searching communities. To search for communities, you can use the wildcard character *. For example, to search through all community names that begin with the letter C, the search pattern can be specified as C*.
Specifies community properties in output.
This subcommand lists all available community templates in the specified portal. You need a community template ID for creating a community.
psadmin list-community-templates --adminuser uid [--passwordfile password-filename] --portal portal-ID
psadmin list-community-templates -u uid [-f password-filename] -p portal-ID
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
The following option is optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
This subcommand lists all community display profile names. The community display profile name (such as owner or member) is required to get the community display profile XML fragment.
psadmin list—community-dps --adminuser uid [--passwordfile password-filename] --portal portal-ID
psadmin list—community-dps -u uid [-f password-filename] -p portal-ID
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
The following option is optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
This subcommand creates a community.
psadmin create—community --adminuser uid [--passwordfile password-filename] --portal portal-ID --name community-name [--description community-description] --owner user-DN [--category community-category] --template community-template [--unlisted true|false] [--membershiprestricted true|false] [--secured true|false]
psadmin create—community -u uid [-f password-filename] -p portal-ID -N community-name [-D community-description] -O user-DN -G search-category -T community-template [-U true|false] [-R true|false] [-S true|false]
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
Specifies a name for the community.
Specifies the distinguished name of the owner of the community.
Specifies a community template.
The following option is optional:
Specifies the search category.
Specifies a description of the community.
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
Specifies whether or not a community is unlisted. If a community is unlisted, the user will not be able to find it from their desktop. Values can be true or false.
Specifies whether or not the community membership is restricted. Values can be true or false.
Specifies whether or not a community is secured. Secured communities are completely private and membership is by invitation only. The user cannot send a request to join a secured community. Values can be true or false.
This subcommand enables the specified community.
psadmin enable—community --adminuser uid [--passwordfile password-filename] --portal portal-ID --name community-name
psadmin enable—community -u uid [-f password-filename] -p portal-ID -N community-name
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
Specifies the name of the community to enable.
The following option is optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
This subcommand disables the specified community.
psadmin disable-community --adminuser uid [--passwordfile password-filename] --portal portal-ID --name community-name
psadmin disable-community -u uid [-f password-filename] -p portal-ID -N community-name
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
Specifies the name of the community to disable.
The following option is optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
This subcommand undeletes the specified community.
psadmin undelete-community --adminuser uid [--passwordfile password-filename] --portal portal-ID --name community-name
psadmin undelete-community -u uid [-f password-filename] -p portal-ID -N community-name
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
Specifies the name of the community to undelete.
The following option is optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
This subcommand marks the specified community as deleted and only the administrator can see the community.
psadmin undelete-community --adminuser uid [--passwordfile password-filename] --portal portal-ID --name community-name
psadmin undelete-community -u uid [-f password-filename] -p portal-ID -N community-name
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
Specifies the name of the community to delete.
The following option is optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
This subcommand removes the specified community permanently.
psadmin destroy-community --adminuser uid [--passwordfile password-filename] --portal portal-ID --name community-name
psadmin destroy-community -u uid [-f password-filename] -p portal-ID -N community-name
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
Specifies the name of the community to remove permanently.
The following option is optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
This subcommand fetches the description, owner, and category for the specified community.
psadmin get-community --adminuser uid [--passwordfile password-filename] --portal portal-ID --name community-name
psadmin get-community -u uid [-f password-filename] -p portal-ID -N community-name
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
Specifies the name of the community to fetch data.
The following option is optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
This subcommand fetches the community display profile XML fragment for the specified display profile name (such as owner or member).
psadmin get-community-dp --adminuser uid [--passwordfile password-filename] --portal portal-ID --name community-name --dp dp-name
psadmin get-community-dp -u uid [-f password-filename] -p portal-ID -N community-name -P dp-name
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
Specifies the name of the community to fetch community display profile data.
Specifies the display profile name (such as owner or member).
The following option is optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
This subcommand modifies the description and category of the specified community.
psadmin modify-community --adminuser uid [--passwordfile password-filename] --portal portal-ID --name community-name [--newdescription community-description] [--newcategory community-category] [--newunlisted Community-Unlisted] [--newmembershiprestricted Community-MembershipRestricted] [--newsecured Community-Secured]
psadmin modify-community -u uid [-f password-filename] -p portal-ID -N community-name [-D community-description] [-G community-category] [-U Community-Unlisted] [-R Community-MembershipRestricted [-S Community-Secured]]
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
Specifies the name of the community to modify.
The following options are optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
Specifies a new description for the specified community.
Specifies the new search category for the specified community.
Specifies whether or not the community is unlisted. If a community is unlisted, the user will not be able to find it from their desktop. Values can be true or false.
Specifies whether or not the community membership is restricted. Values can be true or false.
Specifies new community secured attribute. Values can be true or false.
This subcommand lists the members of the specified community.
psadmin list-community-users --adminuser uid [--passwordfile password-filename] --portal portal-ID --name community-name
psadmin list-community-users -u uid [-f password-filename] -p portal-ID -N community-name
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
Specifies the name of the community to fetch data.
The following option is optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
This subcommand lists the users awaiting membership approval to a community.
psadmin list-community-pending-users --adminuser uid [--passwordfile password-filename] --portal portal-ID --name community-name
psadmin list-community-pending-users -u uid [-f password-filename] -p portal-ID -N community-name
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
Specifies the name of the community to fetch data.
The following option is optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
This subcommand adds users to a specified community.
psadmin add-community-users --adminuser uid [--passwordfile password-filename] --portal portal-ID --name community-name [--user user-DN] [--users userDN-list] [--search search-pattern] [--dryrun]
psadmin add-community-users -u uid [-f password-filename] -p portal-ID -N community-name [-y user-DN] [-Y userDN-list] [-s search-pattern] [-n]
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
Specifies the name of the community.
The following options are optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
Specifies the distinguished name of the user to add.
Specifies a pattern to search for distinguished name of users to add. The search pattern is a regular expression for directory node search.
Specifies a pattern for searching distinguished name of users.
Performs a dry run, typically, for testing the search pattern.
This subcommand deletes users from a specified community.
psadmin remove-community-users --adminuser uid [--passwordfile password-filename] --portal portal-ID --name community-name [--user user-DN] [--users userDN-list] [--search search-pattern] [--dryrun]
psadmin remove-community-users -u uid [-f password-filename] -p portal-ID -N community-name [-y user-DN] [-Y userDN-list] [-s search-pattern] [-n]
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
Specifies the name of the community.
The following options are optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
Specifies the distinguished name of the community user to remove.
Specifies a list of distinguished name of users.
Specifies a pattern to search for distinguished name of users to remove. The search pattern is a regular expression for directory node search.
Performs a dry run, typically, for testing the search pattern.
This subcommand approves community membership requests from users.
psadmin approve-community-users --adminuser uid [--passwordfile password-filename] --portal portal-ID --name community-name [--user user-DN] [--users userDN-list] [--search search-pattern] [--dryrun]
psadmin approve-community-users -u uid [-f password-filename] -p portal-ID -N community-name [-y user-DN] [-Y userDN-list] [-s search-pattern] [-n]
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
Specifies the name of the community.
The following options are optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
Specifies the distinguished name of the user to approve.
Specifies the distinguished name of a list of users.
Specifies a pattern to search for distinguished name of users. The search pattern is a regular expression for directory node search.
Performs a dry run, typically, for testing the search pattern.
This subcommand denies membership requests from users to a specified community.
psadmin deny-community-users --adminuser uid [--passwordfile password-filename] --portal portal-ID --name community-name [--user user-DN] [--users userDN-list] [--search search-pattern] [--dryrun]
psadmin deny-community-users -u uid [-f password-filename] -p portal-ID -N community-name [-y user-DN] [-Y userDN-list] [-s search-pattern] [-n]
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
Specifies the name of the community.
The following options are optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
Specifies the distinguished name of the user to deny approval.
Specifies the distinguished name of a list of users.
Specifies a pattern to search for distinguished name of users. The search pattern is a regular expression for directory node search.
Performs a dry run, typically, for testing the search pattern.
This subcommand bans users from a specified community. Banned users cannot see the content of the community.
psadmin ban-community-users --adminuser uid [--passwordfile password-filename] --portal portal-ID --name community-name [--user user-DN] [--users userDN-list] [--search search-pattern] [--dryrun]
psadmin ban-community-users -u uid [-f password-filename] -p portal-ID -N community-name [-y user-DN] [-Y userDN-list] [-s search-pattern] [-n]
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
Specifies the name of the community.
The following options are optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
Specifies the distinguished name of the user to ban.
Specifies the distinguished name of a list of users.
Specifies a pattern to search for distinguished name of users. The search pattern is a regular expression for directory node search.
Performs a dry run, typically, for testing the search pattern.
This subcommand removes the ban on users from joining a specified community.
psadmin unban-community-users --adminuser uid [--passwordfile password-filename] --portal portal-ID --name community-name [--user user-DN] [--users userDN-list] [--search search-pattern] [--dryrun]
psadmin unban-community-users -u uid [-f password-filename] -p portal-ID -N community-name [-y user-DN] [-Y userDN-list] [-s search-pattern] [-n]
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
Specifies the name of the community.
The following options are optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
Specifies the distinguished name of the user to unban.
Specifies the distinguished name of a list of users.
Specifies a pattern to search for distinguished name of users. The search pattern is a regular expression for directory node search.
Performs a dry run, typically, for testing the search pattern.
This subcommand adds owners to a specified community.
psadmin add-community-owners --adminuser uid [--passwordfile password-filename] --portal portal-ID --name community-name [--user user-DN] [--users userDN-list] [--search search-pattern] [--dryrun]
psadmin add-community-owners -u uid [-f password-filename] -p portal-ID -N community-name [-y user-DN] [-Y userDN-list] [-s search-pattern] [-n]
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
Specifies the name of the community.
The following options are optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
Specifies the distinguished name of the user to add as an owner.
Specifies the distinguished name of a list of users.
Specifies a pattern to search for distinguished name of users. The search pattern is a regular expression for directory node search.
Performs a dry run, typically, for testing the search pattern.
This subcommand removes the specified community owners. If you remove the owner role from a user, the user is still a member.
psadmin remove-community-owners --adminuser uid [--passwordfile password-filename] --portal portal-ID --name community-name [--user user-DN] [--users userDN-list] [--search search-pattern] [--dryrun]
psadmin remove-community-owners -u uid [-f password-filename] -p portal-ID -N community-name [-y user-DN] [-Y userDN-list] [-s search-pattern] [-n]
The following options are required:
Specifies the distinguished name of administrator.
Specifies the portal ID.
Specifies the name of the community.
The following options are optional:
Specifies the administrator password in a temporary password file. The password file is used to fetch and present password for authentication.
Specifies the distinguished name of the user to remove as an owner.
Specifies the distinguished name of a list of users.
Specifies a pattern to search for distinguished name of users. The search pattern is a regular expression for directory node search.
Performs a dry run, typically, for testing the search pattern.