We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

AzureAD User Import with REST - ConnectionJSON not setting access_token

Brian
New Contributor II
New Contributor II

Hello,

This is for an AzureAD user import using a REST connection.  I can get the connection and import working to import users from Azure AD if, in the ConnectionJSON, I hard-code accessToken with an actual bearer token value retrieved from Postman.

I am following the steps here for Configuring the Integration for Importing Users:

https://docs.saviyntcloud.com/bundle/AzureAD-v24x/page/Content/Configuring-the-Integration-for-Impor...

My JSON is the same as this ConnectionJSON, with the exception of the variables (client_id, client_scecrt, url)

When I keep "accessToken": "Bearer abcd", I get the following log entry (trimmed a bit for readability):

responseText:{"error":{"code":"InvalidAuthenticationToken","message":"IDX14100: JWT is not well formed, there are no dots (.).\nThe token needs to be in JWS or JWE Compact Serialization Format. (JWS): 'EncodedHeader.EndcodedPayload.EncodedSignature'. (JWE): 'EncodedProtecte

Once I replace "Bearer abcd" with a real token, things begin to work.  Any help is appreciated to get the ${access_token} variable assigned properly from the ConnectionJSON.

1 REPLY 1

Brian
New Contributor II
New Contributor II

I figured out the issue, and it can be chalked up to a newbie user error.  My URL in the connectionJSON  had a leading space: " https://" and removing that leading space made the access_token start getting assigned properly.