cancel
Showing results for 
Search instead for 
Did you mean: 

user to role assignment ?

Former Member
0 Kudos

Hi,

we are moving our content from dev to QA. and we have the same users in DEV and QA, so how can I transport this "user to role" assignments from dev to QA?

any help is appreciated.

Thank you

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member188977
Contributor
0 Kudos

Hi, you can use the export tool un User administration -> Import/export

This tool generates a report of users.

You can select all the text, copy/paste in a new txt file.

After that, you can use the import tool in production system

if you are working with "only database" as UME configuration this tool 'll create the users and 'll assign groups an roles.

if you are working with LDAP of other way, the users are created, and you should edit the txt and delete all user's information except the id, groups and roles.

Regards.

PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

Former Member
0 Kudos

The User to Role relationship should come across using the way Ignacio describes, however, if you are indeed using LDAP for your users this will only work if the LDAP servers are in the same domain. Since the Portal DB contains meta data on the relationships, it will break if a "dc=dev" entry is written to a QA DB.

Regards,

Patrick

Former Member
0 Kudos

Hi Patrick and Ignacio,

I am using central user administration, CUA as a user base, so the users are already available in my QA portal. only the user to role assignments are missing there. so what can i do in this situation, i.e. CUA (ABAP system) as userbase

please let me know your suggestions on this

Former Member
0 Kudos

Interesting, do you have the PCD Tools installed? This is just a stab, but, using the provided API's in the SAP Portal API documentation, you would be able to construct a script that would write the relationships to the PCD. If you are unfamiliar with the API's try getting a hold of a developer to have it done.

Regards,

Patrick

Former Member
0 Kudos

Patrick,

custom development??? we have not yet installed pdk business package,if you were referring to this.

so is it the only way you think to transport the user to role assignments? because we dont have concept of groups here.. we just assign users to roles...so it is going to take a lot of time assigining each and every user to a role..

please let me know if there is any alternative apart form custom coding

Thank you

Former Member
0 Kudos

I just wnat to know what happens if i perform user export and import with CUA as user base. i.e.

1. I will export the data into a text file

2. Then i will delete all user's information except the id, groups and roles.

3. Then will take this text file and import in QA portal

4. i will select overwrite existing data in user administration --> import

what will happen.. could you please help me in this regard.

Thank you

Former Member
0 Kudos

Sorry,

As I have not tested this myself I cannot comment on its success.

Regards,

Patrick

Former Member
0 Kudos

hi Patrick,

thats ok, but could you just tell me..

let us take case of LDAP:

already the users are in LDAP and the QA portal is pointing to them and now If i perform import of users from the user admin--> import (a text file exported from dev portal). will this Import function overwrites all the users data that is available in LDAP.

could you please clarify this to me?

thank you

former_member188977
Contributor
0 Kudos

In your case, you need to edit the txt.

For example you have:

<b>[User]

org_id=ORG

uid=YP05595

role=pcd:portal_content/specialist/...

group=Everyone;etc...</b>

<i>email_address=USER@DOMAIN.COM

first_name=NAME

last_name=LAST NAME

country=RE

language=es

time_zone=AGT

telephone=12882</i>

You need to import only the paragraph in BOLD.

Other lines should be deleted

Former Member
0 Kudos

Hi

The follwoing procedure worked..

1. I exported the users from DEV Portal using user-administration --> export

2.then it displayed the data for all the users available in dev portal

3. just copied user information for one user to test the scenario..

    • copied all the fileds of that particular user as you see below

[User]

uid=Testing

role=pcd:portal_content/GeneralManager

group=Everyone;Authenticated Users;

email_address=testing@yahoo.com

first_name=my

last_name=test

job_title=job

country=US

language=en

street=29 1d wdrive

city=hyd

state=PY

zip=08862

telephone=+1 9023357654

fax=+1 9023357654

mobile=+1 9023357654

department= mydept

4. In QA portal used useradministration --> import > pasted this information> clicked on upload

5. IN QA portal i could see the user assigned to the role "GeneralManager" and the user created in backend QA CUA system

The above worked.. could you please let me knkow if I am correct with the above procedure

Thank you

Former Member
0 Kudos

Hi Koduru,

Only roles can be transported from Dev to QA.

I dont think there is a way to transport User to Role relationships.

You will have to assign the roles again to the users.

Regards,

Vivek