Skip to content

ServiceClient - Constructor useUniqueInstance, Clone, CallerId, WhoAmI #269

Answered by MattB-msft
fowl2 asked this question in Q&A
Discussion options

You must be logged in to vote

Regarding Caller ID and the web API.
You can only send that after the call has been authenticated, in the case of the webAPI via Postman or some other client, your doing the JWT authentication flow and attaching it to the Authorize header when you talk to the WebAPI, coupled with the CallerID you achieve impersonation for that request.
In the Dataverse ServiceClient, assuming your not providing your own authentication handler, the client establishes the connection and does the first WhoAmI as the connecting user. At which point you have a ServiceClient you can set a Caller ID on.
See this article.. and note that there are 2 different properties..
CallerObjectId and MSCRMCallerId.
CallerOb…

Replies: 8 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@fowl2
Comment options

@fowl2
Comment options

Answer selected by MattB-msft
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #265 on April 15, 2022 03:08.