IOS profile for ExchangeSync

(imported topic written by riml)

Hi,

I have created an profile to configure an Exchange Account. Here, the login id for Active directory is not the first part of the e-mail. So during the enrollment, we have created a custom question that will get the login id. So my question is how can we set this login id variable in the Exchange profile?

best regards

riml

(imported comment written by DTan)

You can use the “enrollment answers” inspectors to fill that in automatically.

See documentation here:

https://www.ibm.com/developerworks/mydeveloperworks/wikis/home?lang=en#/wiki/Tivoli%20Endpoint%20Manager/page/Apple%20iOS%20Inspectors

Assuming you have created a custom question with the id of “email”, you can put something similar to below in the “user” or “email” fields respectively when you are creating the iOS Exchange ActiveSync Configuration Profile on the “iOS Profile Configuration” Dashboard.

{preceding text of first “@” of value of enrollment answer “email”}

or

{value of enrollment answer “email”}

Note: This will not work if you have the profile Encryption on, and below wiki page will provide explanation.

https://www.ibm.com/developerworks/mydeveloperworks/wikis/home?lang=en#/wiki/Tivoli%20Endpoint%20Manager/page/iOS%20Configuration%20Profile%20for%20Exchange%20ActiveSync

(imported comment written by riml)

Hi DTan,

I have the following code in my fixlet:

UserName

Domain{Value of “CPF”}

Where CPF is my custom inspector. When I apply the fixlet, I get an error. I also tried with {Value of enrollment “CPF”} but I get the same error. Can you help?

best regards

riml

(imported comment written by DTan)

On the dashboard, I have:

“mycompany” for the domain field

“{value of enrollment answer “email”}” for the email

“{preceding text of first “@” of value of enrollment answer “email”}” for the user field.

and I got the following xml in the action script:

EmailAddress

{value of enrollment answer “email”}

UserName

mycompany{preceding text of first “@” of value of enrollment answer “email”}

If the id for your enrollment answer is “CPF”, you can just simply replace the “email” with “CPF”.

In addition, you are likely getting a relevance substitution because Value of “CPF” is not a known inspector.

(imported comment written by DTan)

I meant “relevance substitution error” in the previous post.

(imported comment written by riml)

Hi Dtan,

I have tried that but I always get an error. The only difference from you example is I am using the inspector CPF for the UserName:

UserName

{value of enrollment answer “CPF”}

Is there any log file I can check to see the error?

Best Regards

Riml

(imported comment written by DTan)

You can check the proxy agent log, and the iOS MDM Log:

https://www.ibm.com/developerworks/mydeveloperworks/wikis/home?lang=en#/wiki/Tivoli%20Endpoint%20Manager/page/Logs

(imported comment written by riml)

Hi Dtan,

I am getting an error like “Singular Expression refers to nonexistent object.”.

Below is my custom question:

Question: Qual o CPF?

Identifier: CPF

Type: Text

The device I am trying was registered already filling the custom question.

Best Regards

Riml

(imported comment written by DTan)

Hi Riml,

Can you check your device report on the extender machine at below path or similar, and provide the “enrollment answers” and the “enrollment answer” portion of the json file?

C:\Program Files (x86)\BigFix Enterprise\Management Extender\Plugins\Apple iOS 1\DeviceReports\

-Dawson

(imported comment written by riml)

Hi Dtan,

In the report file for the device, I can see the follow:

“enrollment answers”: [

{

“id”: “CPF”,

“value”: “782873878373”

}

],

“enrollment answer”: {

| “CPF”: “782873878373”

},

best regards

riml

(imported comment written by DTan)

For a quick sanity check, can you create a retrieved property for the iOS devices with below relevance?

(id of it, value of it) of enrollment answers

Here are the steps to create the property:

  1. Console Menu -> Tools -> Manage Properties

  2. Click “Add new” button on the upper-right

  3. Put “Enrollment Answer Sanity Check” in the name field, and paste in above into the relevance field.

  4. Click OK

Here are the steps to view the retrieved property (There are many other ways). Make sure the device has checked in after you created the property.

  1. Go to MDM Domain

  2. Mobile Device Inventory -> Apple MDM

  3. Select the device that you tested with

  4. Click on the summary tab on the lower-right pane.

  5. Scroll down to the property (Under the “Custom Properties” Section) that you just created

Please provide the values for above property.

-Dawson

(imported comment written by riml)

Hi Dawson,

After following your instructions, in the Enrollment Answer Sanity Check field, I can see: CPF, 83738388383

It is the right information. Isn’t it a parser problem? I am running TEM 9.0.

Best Regards

Riml

(imported comment written by DTan)

For TEM 9.0, you need to update your Proxy Agent with Fixlet 191 if you have not done so yet.

From what you’ve provided so far, it seems that you are doing it right.

Once your Proxy Agent is up to date, can you restart the proxy agent service (by the name of “BES Proxy Agent”), and try again to see whether you can reproduce the same error?

(imported comment written by riml)

Hi Dtan,

I have ran the 191 before because we had problems with the proxy plugin connection. The fix was already applied.

best regards

Riml

(imported comment written by DTan)

Hi Riml,

As an alternative to the above relevance (recommended by another developer), can you try below relevance in your Exchange profile?

value of enrollment answers whose (id of it = “CPF”)

Thanks,

-Dawson

(imported comment written by riml)

Hi Dawson,

It Worked! But Its very strange that the other commands didn’t work. Thanks a lot for your assitance!!!

Best Regards

Riml

(imported comment written by DTan)

Hi Riml,

Thanks for working with us. I have filed a bug to track down the potential problematic inspector.

-Dawson