Skip to Content
0
Former Member
May 02, 2011 at 03:56 PM

Not accessing user-managed UME attribute

24 Views

Hi,

I have defined a user managed attribute in the UME configuration (under User Admin UI tab) in our Portal:

myAttr

In the code I cannot find this attribute with:

String attrNames[] = um.getAttributeNames(IPrincipal.DEFAULT_NAMESPACE);

loc.infoT("attrNames.length = " + attrNames.length);

for(int a = 0; a < attrNames.length; a++)

{

loc.infoT("attr[" + a + "]: " + attrNames[a]);

}

This attribute does not appear in the list of attribute in the default namespace.

I tried redefining the attribute into a namespace:

MyNamespace:myAttr

Then try to access it with

String attrNames[] = um.getAttributeNames("MyNamespace");

loc.infoT("attrNames.length = " + attrNames.length);

for(int a = 0; a < attrNames.length; a++)

{

loc.infoT("attr[" + a + "]: " + attrNames[a]);

}

But this attribute does not exist.

Can anyone tell me what's missing?

Sharath