psadmin deploy-portlet -u admin-user -f password -g --rolesfile /tmp/rolesfile -p portal1 portlet.war
Where the content of the rolesfile is:
cn\=AsAdminRole,o\=DeveloperSample,dc\=x,dc\=y,dc\=com=portletAsAdminRole cn\=DevRole,o\=DeveloperSample,dc\=x,dc\=y,dc\=com=portletDevRole |
AsAdminRole and DevRole are the roles that are created through the Access Manager and the roles file creates a logical mapping to the AsAdminRole with portletAsAdminRole and DevRole with portletDevRole. The portletAsAdminRole and the portletDevRole can be used in the portlets.