cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
johnjohn123
Super User
Super User

Unable to get a security group ID by name using Graph API. Error "URI path is not a valid Graph endpoint,"

I want to get a security group ID by name, so i tried this HTTP request action, by passing this uri (https://graph.microsoft.com/v1.0/groups?$filter=displayname eq 'SEC-Project Repository Hub-Visitors'):-

 

johnjohn123_0-1659736699905.png

 

 

 

but i got this error

 

{
"error": {
"code": 400,
"message": "URI path is not a valid Graph endpoint, path is neither absolute nor relative or resource/object is not supported for this connector. Resources: groups. Uri: https://graph.microsoft.com/v1.0/groups?$filter=displayname eq 'SEC-Project Repository Hub-Visitors'",
"source": "canada-001.azure-apim.net",
"path": "choose[10]\\when[1]",
"policyId": "",
"clientRequestId": "*****"
}
}

 

any advice please?

1 ACCEPTED SOLUTION

Accepted Solutions
VictorIvanidze
Community Champion
Community Champion

It's a known bug. Use this URI:

https://graph.microsoft.com/v1.0/groups/?$filter=displayName+eq+ 'SEC-Project Repository Hub-Visitors'

Note a slash between groups and ?

 

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.

View solution in original post

3 REPLIES 3
MarconettiMarco
Super User
Super User

Hello @johnjohn123 ,

you should use this URI: https://graph.microsoft.com/v1.0/groups?$filter=eq(displayName,SEC-Project Repository Hub-Visitors)

 

If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

BR,

Marco

 

VictorIvanidze
Community Champion
Community Champion

It's a known bug. Use this URI:

https://graph.microsoft.com/v1.0/groups/?$filter=displayName+eq+ 'SEC-Project Repository Hub-Visitors'

Note a slash between groups and ?

 

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.

Hi @MarconettiMarco ,

I got this:

{
    "error": {
        "code": "BadRequest",
        "message": "Invalid filter clause",
        "innerError": {
            "date": "2022-08-07T14:28:41",
            "request-id": "88b45b3d-46c3-4edb-9c68-847dd1a41274",
            "client-request-id": "569f6590-0ca6-e422-500a-e5e009eab8cd"
        }
    }
}

 

did you test it yourself? Where did you find this syntax - could you provide a link to documentation?

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.

Helpful resources

Announcements
Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,233)