
AndyM.92578 (Customer) asked a question.
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.

@AndyM.92578 (Customer) -- My guess is the special @ character is breaking the card. There is possibly a defect here.
Can you provide the specific API documentation for the action that is resulting in the error?
Also, try a couple things and see if the behavior changes:
https://graph.microsoft.com/v1.0/users/"bluehouse@buildings.com"/authentication/methods
https://graph.microsoft.com/v1.0/users/bluehouse%40buildings.com/authentication/methods
Edit: One other thing. What you are listing here is not a relative URL. Relative URL's assume the start so like: https://graph.microsoft.com/v1.0 is assumed and the relative URL would be /users/bluehouse@buildings.com/authentication/methods
This is a big part of the reason I wan't to see the documentation you are using. Custom API Action is always going to have some portion of the URL already as an input. And it does a simple check to see if the first char in the provided string is /
This is from the "help" on the Azure AD card:
URL address on the web server to which you're attempting to interact. Specify the relative URL as /{insert_remaining_URL}. Use a leading slash at the beginning of the relative URL.
You can specify query parameters in the relative URL using "?", or specify the query parameters as an object key pair in the Query input.
For example, for the Microsoft Graph API endpoint https://graph.microsoft.com/v1.0/invitations, the relative URL is: /invitations.
See Azure Active Directory Management API overview