cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Carl__D
Helper I
Helper I

Can you get a group ID from a Group display name?

Can you get a 365 Group ID from a Group Display Name in Power Automate?

 

In Graph I would use: https://graph.microsoft.com/v1.0/groups?$filter=displayName eq '[Group Name]'

But I can't get this to work in an HTTP call?

 

Thanks

Carl

1 ACCEPTED SOLUTION

Accepted Solutions
Carl__D
Helper I
Helper I

Thanks for letting me know this could be done! I tried all suggestions and was having the same issue but it turns out I had to add '+' for Flow to accept it:

https://graph.microsoft.com/v1.0/groups?$filter=displayName+eq+'[Group Name]'

View solution in original post

6 REPLIES 6
Expiscornovus
Dual Super User
Dual Super User

Hi @Carl__D,

 

Just to double check, have you added the ConsistencyLevel: eventual to the Header of your request?

https://docs.microsoft.com/en-us/graph/api/group-list?view=graph-rest-1.0&tabs=http#example-2-get-a-...

 

VictorIvanidze
Community Champion
Community Champion

If saying "In Graph" you mean the Graph Explorer tool, why don't you do the same GRAPH request using the "Send an HTTP request" action of  the "Office 365 groups" connector?

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

I am able to get it, check if your login has consent to get group details if not give permissions and try again

Soundharya_0-1643041065911.png

Soundharya_1-1643041195211.png

 

Carl__D
Helper I
Helper I

Thanks for letting me know this could be done! I tried all suggestions and was having the same issue but it turns out I had to add '+' for Flow to accept it:

https://graph.microsoft.com/v1.0/groups?$filter=displayName+eq+'[Group Name]'

Hi @Carl__D .

 

Good to know you got it worked! Please accept the the reply as the solution to help the other members find it.

 

Best regards,

Community Support Team _ Jeffer Ni

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

stayinginsync
Helper II
Helper II

@Carl__D , @v-jefferni 

 

 

Which HTTP Request action are you using?

 

I tried using Group > Send an HTTP request (Preview) with the URI

 

 

https://graph.microsoft.com/v1.0/groups$filter=displayname+eq+'groupdisplayname'

 

 

and got the following error:

 

 

URI path is not a valid Graph endpoint, path is neither absolute nor relative or resource is not one of the supported (me, users, groups, sites, search, planner, teams, chats)

 

 

UPDATE - I fixed this error using this technique -https://powerusers.microsoft.com/t5/Building-Flows/Power-Automate-O365-Groups-activities-Get-group-I...

 

But I still cannot extract the Group ID.  

 

Also, I'm trying to get the Group ID after I find the entry with the correct Display Name.

 

Thanks in advance.

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,134)