The following command assigns Portal resource of the portal, portal1 to the user d.
./psadmin assign-delegations -u amadmin [-f passwordFile] ----resources Portal:portal1 --delegatedadmin "uid=d,ou=People,o=daorg,o=EnterpriseSample,dc=india,dc=sun,dc=com"
For portal centric services, use the ./psadmin assign-delegations -u amadmin -f ps_password --resources '"Desktop:portal1" "Consumer:portal1"' --delegatedadmin "o=daorg,o=EnterpriseSample,dc=india,dc=sun,dc=com" command.
For domain centric services, use the ./psadmin assign-delegations -u amadmin -f ps_password --resources '"SearchServer" "SRA"' --delegatedadmin "o=daorg,o=EnterpriseSample,dc=india,dc=sun,dc=com" command.