I might be missing something, but I am having an issue setting up an external service (exchange) account for a newly imported user using the CUPI API.
The wiki explains that you get the user object-id, then go to '/vmrest/users/<object-id>/externalserviceaccounts' to get the object ID of the users external service account(s).
Since this is a new user, the result I get is:
<ExternalServiceAccounts total="0"/>
This is correct, the user doesn't have any external accounts yet, but how to I go about generating/creating one without knowing this ExternalServiceAccounts object-id?