Skip to Content
author's profile photo Former Member
Former Member

Extended user attributes (UME)

Hi there

I'd like to add some attributes to my application users.

I've read about ume.admin.addattrs and ume.admin.self.addattrs and I got it working, I mean, I can see those attributes in the "user admin" of my was server.

How can I read these values in my webdynpro application?

I've tried through IUser interface but it didn't work.

Is there any other way of adding attributes to WAS users?

thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2006 at 08:24 AM

    That is Ok but I am trying to get those user attributes from a Web Service. This is the code I am running:

    IUser user = UMFactory.getUserFactory().getUserByUniqueName(username);
    		String[] ns = user.getAttributeNamespaces();
    		String[] attr = user.getAttributeNames(ns[0]);

    Neither ns nor attr has the attributes I am looking for.

    Any ideas?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Julio,

      I think I found the problem:

      I played around with this today and had the same problem. First I was thinking it might be because I tried to use my own namespaces. But in the end I found that <b>the attributes (and namespaces) are only present, if the current user has some values configured</b>, i.e. once you set some value for your custom attributes for a user, if that user logs in, you will also find the attributes.

      Regards

      Markus

  • Posted on Jun 14, 2006 at 04:36 PM

    Hi Julio,

    Check How to get Logged user in a pirticular Organization?

    Best regards, Maksim Rashchynski.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2006 at 03:42 PM

    The namespace "com.sap.security.core.usermanagement" does not have the attributte I am specting.

    Could you please explain to me the whole procedure for adding custom user attributes?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2006 at 02:23 PM

    Excellent!

    That was exactly it.

    Thank you

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.