cancel
Showing results for 
Search instead for 
Did you mean: 

UME API option to get Organizational Unit field information in Webdynpro

Former Member
0 Kudos

Hi Experts

I am not able to get the field Organizational Unit from portal UME using IUser API in Webdynpro application. I don't find the get method available for the same i.e. getLastName, getFirstName, getDisplayName etc. Can anyone help me in getting this resolved?...

Thanks

Ramamoorthy D

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Guys,

Kindly help me in getting a solution for the above described problem.

Thanks in advance.

Ramamoorthy D

siarhei_pisarenka3
Active Contributor
0 Kudos

Hi Ramamoorthy D

IUser.getCompany();
IUser.getDepartment();

BR, Siarhei

Former Member
0 Kudos

Hi

Thanks for the reply. I tried both these options given by you, but I didn't get organizational unit from these two. Can you please help me out? Thanks again in advance.

Regards

Ramamoorthy D

siarhei_pisarenka3
Active Contributor
0 Kudos

Hi Ramamoorthy

Then try the following:

IUser.getAttribute("com.sap.security.core.usermanagement", "orgunit");

If it will not help, try to inspect all the existing user properties:

String namespaces[] = user.getAttributeNamespaces();
for (int i = 0; i < namespaces.length; i++) {
    String attrNames[] = user.getAttributeNames(namespaces<i>);
    for (int j = 0; j < attrNames.length; j++) {
        Object attr[] = user.getAttribute(namespaces<i>, attrNames[j]);
        for (int k = 0; k < attr.length; k++) {
            //
        } 
    }
}

BR, Siarhei

Former Member
0 Kudos

Hi

Thanks a ton! I will try this out and reply back shortly.

Regards

Ramamoorthy D

Former Member
0 Kudos

Thanks, this solved the issue.

Regards

Ramamoorthy D

Answers (0)