cancel
Showing results for 
Search instead for 
Did you mean: 

Group to Role Mapping - mass update

Former Member
0 Kudos

Hi there

We have a situation where we have a number of groups and a number of roles, all sitting in our Portal QA system. Each group is mapped to 1 or more roles.

We now need to move these groups, roles and mappings to the production system.

I found that a collection of groups can be exported, and then imported from the User Import screen in production. The file that is generated can / does include users, so the import will assign users to the group when it is performed.

Likewise, roles can be added to a transport package and then transported to the production system.

The only part of the puzzle that is missing is the link between groups and roles ...

Does anybody know how I can go about transporting the group-role assignment from one portal system to another.

The format of the file contents for importing a group is:

[group]

gid=<GroupID>

gdesc=<GroupDescription>

user=<User>;<User>

If I export users, the file contents follow a similar pattern:

uid=<UserID>

role=<Role1>;<Role2>

group=<Group1>;<Group2>;

So ... I am seeing a bit of a pattern here, so was really hoping there is something that I can do that will allow for the group-role mappings to be included. I tried include role=<RoleID> in the groups file, but that didn't work.

Any ideas would be greatly appreciated.

Cheers,

Andrew

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Aah yes ... one should look before one leaps ... now I find the answer

http://help.sap.com/saphelp_nw04/helpdata/en/d1/a73184c45e4e119e63d1b8108f1ab0/content.htm

Basically, the file contents are

[Role]

rid=<RoleID>

group=<Group1>;<Group2>

Upload this, and the group-role assignment carries on through.

Former Member
0 Kudos

Hi Andrew,

We have same requirement, We have 1000+ portal group, roles and users with mapping

We are planning to

1. Export Portal Roles and Groups in source Systems 

2. Import exported Portal Roles and Groups in Target Systems 

3.  Users we will not be exported from source systems. In Target systems we will connect to our AD and pull users from it.

When I do test export of groups, I see following

[group]

gid=<Group ID>

gdesc=<Group Description>

user=abc;efg;hij

role=pcd:portal_content/<role path>

Can you please let me if do we need to anything to enable Roles <-> Groups <->Users mapping ?

Post import does mapping happens automatically or we need to anything ?

Regards,

Kunal Salunkhe

Former Member
0 Kudos

If you're going to import your users from AD in the target environment, then I imagine you'll need to manually assign them to groups.

Unless you have a way of automatically assigning users assigned to particular AD groups to your portal group.

The export / import wizard works very well in maintaining the links between roles & groups.