<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z0000A0KKe3CQGOkta Identity EngineWorkflowsAnswered2024-02-13T17:52:28.000Z2024-02-13T14:19:31.000Z2024-02-13T17:52:28.000Z

AndyM.92578 (Customer) asked a question.

Microsoft Graph API Workflow Relative URL Error

I am working on a workflow in Okta that triggers when a user is added to a group. As part of this workflow, I need to use the Microsoft Graph API to delete the authentication methods for the user.

 

To achieve this, I have created a compose action that retrieves the user's User Principal Name (UPN). The output of this compose action is then used in a second compose action to form the API URL: 'https://graph.microsoft.com/v1.0/users/output/authentication/methods'.

 

The next action in the workflow is an Azure Active Directory Custom API Action with the DELETE option. The relative URL for this action is set to the output of the second compose action: 'https://graph.microsoft.com/v1.0/users/output/authentication/methods'.

 

However, when I run the workflow and try to delete the authentication methods for a user with the UPN 'bluehouse@buildings.com' receive the below error when using the following API URL https://graph.microsoft.com/v1.0/users/bluehouse@buildings.com/authentication/methods

 

Error: Relative URL must include a leading '/'.

 

The URL structure appears to be correct. Can someone please help me understand why I am encountering this error and how I can resolve it? Any guidance or suggestions would be greatly appreciated.


This question is closed.
Loading
Microsoft Graph API Workflow Relative URL Error