cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
723
Views
0
Helpful
3
Replies

CUPI.NET - ImportLdapUser override does not return objectId of imported user

stephan.steiner
Spotlight
Spotlight

Hi

I spotted this small inconcistency:

If we use the method in LdapUser that just imports the user

public static WebCallResult ImportLdapUser(ConnectionServerRest pConnectionServer, string pTemplateAlias,

                                                   string pPkid, string pAlias, string pFirstName, string pLastName,

                                                    string pExtension,ConnectionPropertyList pPropList)

Then the WebCallResult.ReturnedObjectId will be the objectId of the created mailbox.

If we use the override that returns the user proper, the returned WebCallResult will be from the request to extract the mailbox and thus has ReturnedObjectId = null,

If we compare that this UserBase.AddUser which also has an override to return a UserFull after creation, the method does fill in the ReturnedObjectId:

            if (res.Success)

            {

                res = UserFull.GetUser(pConnectionServer, res.ReturnedObjectId, out pUserFull);

                //stuff the objectID back in the res structure since we took overwrote it with the GetUser fetch.

                res.ReturnedObjectId = pUserFull.ObjectId;

            }

I think both methods should offer the same functionality.

Cheers

Stephan

3 Replies 3

smupadhy
Cisco Employee
Cisco Employee

Hi,

We will look into it and get back to you.

Thanks,

This has been brought to the attention of the concerned team. Thanks!

Is there a bug id to track this?