cancel
Showing results for 
Search instead for 
Did you mean: 

Automation of role assignment

Former Member
0 Kudos

Is there a way of automating the import of User/Group/Role Data provided under the User Administration tab to bulk assign users to a role? We have explored doing this via the Active Directory route but current contraints have ruled this out for now so I would like to explore the faesability of this option.

Thanks in advance

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member189631
Active Contributor
0 Kudos

Keith,

You can create a portal application in WebDynpro for Java / JSP Dynpage which uses UME API . UME API has set of methods for create or modify users/roles/groups. Using this you can perform user opereations.

The alternative way of acheiving this is you can create a LSMW and record the user creation SU01 to automate user creation.

Ram

Former Member
0 Kudos

Thanks for your input Anup. I haven't yet updated the UME config but I will need to add the ABAP system as an additional user store (we already connect to 3 LDAP user stores). Hopefully then I will see the roles as groups and be able to map them to the Portal roles so that we can assign authorisations via SU01.

Former Member
0 Kudos

Hi Keith,

The link suggest that you have ABAP ume as Portal user persistence store. If this is the case, then you have to follow the documentation.

But you still need to do one thing in Portal and that is role-to-group mapping.

If you have ABAP as UME, ABAP role will be visible in Portal as Groups. These groups are mapped in Portal to corresponding Portal role. Now when you need to assign any user a portal role, you just need to do the same in SU01.

Let me know if need more detail.

Cheers,

A

Former Member
0 Kudos

Hello Keith,

We had a similar requirement and did an EXCEL sheet with the following block of data for about 1000 users. We repeated the same block of data 1000 times but each time with a different userid.

[User]

uid=P00006673

role=pcd:portal_content/myfolder/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.roles/Travel_Terms_Conditions

group=Z_SAP_ESS_CM;

[User]

uid=P00042346

role=pcd:portal_content/myfolder/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.roles/Travel_Terms_Conditions

group=Z_SAP_ESS_CM;

[User]

uid=P00040063

role=pcd:portal_content/myfolder/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.roles/Travel_Terms_Conditions

group=Z_SAP_ESS_CM;

[User]

uid=P00006655

role=pcd:portal_content/myfolder/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.roles/Travel_Terms_Conditions

group=Z_SAP_ESS_CM;

..............etc

1000 blocks.

We did use some code in Excel to do this 1000 blocks automatically. Let me know if this is your requirement.

Regards,

Gopal.

Former Member
0 Kudos

No, this isn't really what I want to do. I really want to assign portal roles without having to do anything in the portal itself. I have read [ABAP Centered role assignment|http://help.sap.com/saphelp_nwmobile71/helpdata/en/d2/3e3842b23d690de10000000a155106/frameset.htm] which I think is what I ultimately need but even following that I'm not able to get it to work. Any ideas?

Former Member
0 Kudos

Hello Gopal,

I have interested in your idea about an Excel sheet with the block of data for about 1000 users.

Former Member
0 Kudos

Could you please share your file with me! Thank you so much!!!