Hello Experts,
We are facing issues when we want to alter the SipAddress and the SMTP Exchange mails. We are provisioning these attributes to the Exchange side, and we know that IQService constructs a PowerShell command to communicate with Exchange. We were wondering, is there any way we can check what PowerShell command is being created by the IQService? Is there any way to log these comands via IQService?
The provisioning code is the following:
//generate new provisioning
Provisioner provisioner = new Provisioner(context);
ProvisioningPlan plan = new ProvisioningPlan();
plan.setIdentity(identity);
String nativeId = getNativeIdentity(context,app,identity);
AccountRequest accReqName = new AccountRequest(AccountRequest.Operation.Modify, app, null, nativeId);
plan.add(accReqName);
accReqName.add(new AttributeRequest(attribute,ProvisioningPlan.Operation.Set, value));
provisioner.execute(plan);
Where attribute and value change based on which attribute we’re trying to change.
To provision the Skype/Lync email we’re using:
accReqName.add(new AttributeRequest("SipAddress",ProvisioningPlan.Operation.Set, "SIP:" + emailAddress));
To provision the Exchange email we’re using:
accReqName.add(new AttributeRequest("Exch_emailAddressPolicyEnable",
ProvisioningPlan.Operation.Set, false));
Map externalEmailMap = new HashMap();
externalEmailMap.put("add", externalEmail);
accReqName.add(new AttributeRequest("Exch_EmailAddresses", ProvisioningPlan.Operation.Set, externalEmailMap));
accReqName.add(new AttributeRequest("Exch_PrimarySmtpAddress", ProvisioningPlan.Operation.Set, externalEmail));
I’ve tried setting the debug level to 3 (DEBUG) and it only returns me the request, some connections to the server, and the response. The request looks something like this:
<RpcRequest>
...
...
<entry key="Request">
<value>
<AccountRequest application="APP NAME" nativeIdentity="IDENTITY" op="Modify">
<AttributeRequest name="ATTRIBUTE" op="Set" value="VALUE"/>
</AccountRequest>
</value>
</entry>
</Map>
</Arguments>
</RpcRequest>
What I wanted was this request in PowerShell commands being generated by the IQService.
Thank you,
Guilherme Russo