cancel
Showing results for 
Search instead for 
Did you mean: 

Reading User Attributes from WebDynpro

Former Member
0 Kudos

Hi All,

I have a case where I want to read Portal User Attributes from an application, in this case a WebDynpro.

So i'm interested if it is possible to get Portal-User Attributes into an application in general and in this specific case in a WebDynpro?

Some links to further information would be very nice.

Thanks,

Mladen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Depend on where your attributes are stored. If your UME database is an abap system: just find a bapi to read them.

There are BAPI's to read an ldap source, but I never used them.

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi Michael,

I'm interseted in all the things I mentioned: so basicly getting user information from the Portal UME and LDAP into WebDynpro and a BSP.

We don't yet know what our user storing strategy is gonna be. Are we going to store the user information in the UME, LDAP, an Back-End System or in all of them. Besides some tipps and links to usefull information about that are also very welcome!!!

And the half of our web-based applications are

BSP, the other half Web Dynpros. So I'm trying to get every information I can.

So usefull information about everything I mentioned above and also about the advantages of different "user storing strategies" are welcome!

Best Regards,

Mladen

Former Member
0 Kudos

Hi Mladen

We're getting beyond a simple "how-to" at this stage! In terms of working out the strategy for storing your users, I think you need to get professional help - this is not a simple "do it this way" answer, but depends on things like how will you authentiacte, will you have external and internal users, do your security people want to maintain an LDAP etc.

Only then, once you know where your users are, do you then worry about how you get the user information. If it's all in ABAP, then it's a function kmodule call etc.

Cheers

Former Member
0 Kudos

Thanks for your answers! A lot of interesting things.

Besides reading from UME, I'm also interested in reading from an LDAP. And that basicly for Java based systems.

What is different when reading from an LDAP?

I've also seen some BAPI's for reading ldap's and abap ume's. But does they also exist for JAVA systems?

And how can User Attributes been read out of UME and LDAP Systems from an BSP?

Every Tipp and Link is welcome!

Best Regards,

Mladen

Former Member
0 Kudos

Hi Mladen

If you want to read directly from LDAP, then you will need to use the appropriate Java LDAP classes. Check out <a href="http://www.openldap.org/jldap/overview.html">Open LDAP</a>, for example.

Yes, you can read LDAP from ABAP - check out the function modules that exist such as LDAP_SEARCH. You can also use BAPIs to get user details.

From a BSP, you need to follow the same techniques as Detlev mentioned, by calling portal services.

I think we need to understand what you are really wanting to do - you started off wanting to get user information from a Web Dynpro application!

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Hi,

I assume you mean you want to call the UME service to get the user's IUser instance, and then to query this instance.

From a portal component, the following offers some tips: http://help.sap.com/saphelp_nw04/helpdata/en/e8/77e04024040b06e10000000a155106/frameset.htm. You will need a sharing reference for the portal UME service (usermanagement).

From WD, you can do the same thing. The following gives details of using portal services from WD: http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/0357425e060d53e10000000a155106/frameset.htm

If you need more detailed information, please let me know.

Hope that helps.

Daniel

Former Member
0 Kudos

Thanks for the answer!

Maybe some more relvenat stuff.

Regards,

Mladen

Former Member
0 Kudos

Maybe you can pass the values across to the Web Dynpro as parameters using the Application Integrator? Accoring to <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/36/5e3842134bad04e10000000a1550b0/frameset.htm">this link</a>, you can pass across things like <User.[AttributeName]>, so you should be able to get the user's department passed...

For example, ?d=<User.department>&l=<User.locale>&c=<User.country> would append department, language and country...

Former Member
0 Kudos

Like

Department, Language, Country ....

Regards,

Mladen

eddy_declercq
Active Contributor
0 Kudos

Hi,

Pls check things like

Eddy

Sharadha1
Active Contributor
0 Kudos

Hi,

can i know what attributes you want to read inside the webdynpro application?

Regards,

Sharadha