Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Web Services

Reply
Contributor
mscheuner_nowhow
Posts: 11
Registered: ‎08-08-2013
My Device: Q10
My Carrier: Swisscom

Trying to get first name and last name for an AD user

I'm trying to use a BES API and I'm missing the first name and last name properties - MBB seems to use "display name" only, but this is rather messy since just about any other system uses first + last name separately. And no - I CANNOT just take everything before the first space as first name - imagine someone like Miguel Francisco de Icaza (or whatever) - that just won't work, there are just too many exceptions to that rule.

 

So we're trying to map the "givenName" and "sn" attributes from AD, but somehow, it seems, BES 10 doesn't really surface those all the way back to the caller of "getUsersDetails" - I still only get the <displayName> back ......

 

What magic do we need to apply to get MBB / BES 10 to fetch the "givenName" (first name) and "sn" (surname = last name) from AD and return those, instead of just the display name ??

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Trying to get first name and last name for an AD user

What appears in the fields for firstName and lastName for the GetUsersDetailIndividualResponse?

 

http://www.blackberry.com/developers/docs/bds/bws/enterprise/admin/6.2.0.35/com/rim/ws/enterprise/ad...

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Contributor
mscheuner_nowhow
Posts: 11
Registered: ‎08-08-2013
My Device: Q10
My Carrier: Swisscom

Re: Trying to get first name and last name for an AD user

I don't get any values for <firstName> or <lastName> - the XML elements are missing entirely, I only get <displayName> (when testing with SoapUI 4.5.2)

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Trying to get first name and last name for an AD user

Do those elements exist in your proxy definition? Which version of BES are you running against?

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Contributor
mscheuner_nowhow
Posts: 11
Registered: ‎08-08-2013
My Device: Q10
My Carrier: Swisscom

Re: Trying to get first name and last name for an AD user

How can I check that?


Versions: from "getSystemInfo", I get back

 

        <properties>
            <name>BWS Version</name>
            <value>10.1.1.20</value>
         </properties>
         <properties>
            <name>BAS Version</name>
            <value>10.1.1.20</value>
         </properties>

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Trying to get first name and last name for an AD user

That version should support the values, according to the API docs anyways. I checked with our internal dev team after reproducing the issue myself and they were unable to actually locate the first or last name values stored in the BAS or the BES DB, so it could be that these fields were added prior to the back-end supporting them.

 

If you'd like to log a bug I can tie it to the internal issue tracker item to keep you updated of what comes out of the investigation. As of right now it looks like this is not supported, so there is no "good" way of grabbing these values from BWS today.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Contributor
mscheuner_nowhow
Posts: 11
Registered: ‎08-08-2013
My Device: Q10
My Carrier: Swisscom

Re: Trying to get first name and last name for an AD user

Done - BBTEN-1682 - please don't close this as "not a bug" this time!!
Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Trying to get first name and last name for an AD user

I'll grab it shortly.

 

And the last one was not a bug, as mentioned when it was rejetced. Feature requests need to be filed separately.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.