cancel
Showing results for 
Search instead for 
Did you mean: 

group,role,users

Former Member
0 Kudos
56

I want to create a group with a role assigned to it and 500 users in it. whats the fastest way to do it.

Thanks

lerner

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Or use the text based input tool. See <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/5a/7adf3dffadd95ee10000000a114084/frameset.htm">here</a> for the format of the file...

Cheers

Former Member
0 Kudos

Error: Cannot create a user without a user ID

heres what i am doin Group name is Sal and i assigned a role to the group and then i wanted to add these users to the group.

[Sal]

gid=Sal

user=p98349393;p98982345;

Any help

Thanks

Former Member
0 Kudos

is the format is wrong

Former Member
0 Kudos

YEs, the format would be:

[Group]

gid=Sal

user=p98349393;p98982345;

Note that [Group] is a fixed value...

Cheers

Former Member
0 Kudos

Warning: Invalid attribute line format. Unknown attribute gid at line 2 of the import data.

Warning: Invalid attribute line format. Unknown attribute user at line 3 of the import data.

Error: Cannot create a user without a user ID

This is the message i am getting

Former Member
0 Kudos

You don't want the extra ; at the end of the user list.

What version of EP are you on?

You can always export a group to check on the syntax.

Cheers

Former Member
0 Kudos

under the import export tab

ihave

User Data Import and

User Data Export

does this mean i cant load a group

iam on Ep6.0 sp2.

Under User Data Export i only see

<All users>

Guest users

Thanx

Former Member
0 Kudos

You can import users,group or roles, but you do it from the menu path you found which, confusingly, is under Users!

When you export, by default you can only export from companies. If you go to the Groups menu you can export groups from there.

Please follow

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/86/85a1e83de97b46bc298edc3b218ad4/frameset.htm">this link</a>

Cheers

Former Member
0 Kudos

heres what it is

I need to test 500 personel numbers in the portal.All i want to do is give each of these pernrs a role so that they can go to the entrprise portal and log in.

Manually it will take a long time for me ,so is it possible that i create a group and add a role to it and then add the pernrs from the text file as in import.

Thanks

Former Member
0 Kudos

Do you want personnel numbers from SAP HR, or users from SAP? Is this for testing ESS functions?

You can create portal users with the text file and assign them to a group. But to get access to SAP, you will need to make SAP user names.

Cheers

Former Member
0 Kudos

yes i have to test ESS functions,

pernr 98761234 has userid:p98761234

with the user id he can log on and perform actions depending on the role given to him.

so how can i do that for 500 pernrs who have 500 userids already existing, but i want to assign them to one group and assign a role to it.

can u tell me in detail

Former Member
0 Kudos

When you say userid:98761234 exists, is this an SAP userid or a portal userid. If you make your UME point to the ABAP system, then your problems are solved - the users will all exist and any PFCG roles in SAP will become groups in UME.

Cheers

Former Member
0 Kudos

okay

i have user 34567891

and in 105 infotype have his username for ESS p34567891.

I want to let this person access the portal and want to give him a role. like in create user and then give him a password and then a role.

How can i do this for 500 personnel.

I have to go in and create a user for each of this personnel and assign a password and a role manually.

any better way to do it

Former Member
0 Kudos

thanks for being patient

Former Member
0 Kudos

You can create a user through the text file as well:

[User]

UID=p34567891

Password=secret

Email_Address=p34567891@mycompany.com

First_Name=p34567891

Last_Name=test

Then create the groups in the text file (as earlier) and then manually assign the group to the role.

Cheers

Former Member
0 Kudos

i was able to create one atlast.thank you

but do i have to manually type in in the text file for all the users.is there an easy way to do for 500 users.

what if i can extract a report of all these fields and put it in a text file any possible way,

thanks so much

Former Member
0 Kudos

A pseudo ABAP report:

report zextract.

tables: usr03.

select * from usr03.

write: / '[User]'.

write: / 'UID=', usr03-bname.

write: / 'Password=secret'.

write: / 'Email_Address=p34567891@mycompany.com'.

write: / 'First_Name=', usr03-name1.

write: / 'Last_Name=user'.

write: / ''.

endselect.

Former Member
0 Kudos

Hi,

Could you please outline the steps clearly, i go to user data import and then ....

you were a great help will reward points accordingly

Former Member
0 Kudos

Enter the file name or paste the contents from a text file...

I think you said you were able to do a user import earlier - it's the same process..

Cheers

Answers (1)

Answers (1)

0 Kudos

Hi Lerner,

The easiest way is to write a Portal Component which would do all this programatically.

Check the API's that will help:

https://help.sap.com/javadocs/NW04/current/um/index.html

Check these classes to know how to create Users and assign them to Group programatically. And assign a Group to a Role:

IGroup

IGroupFactory

IRole

IRoleFactory

IUser

IUserFactory

Greetings,

Praveen Gudapati

p.s. Points are always welcome for helpful answers