web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Can you get a group ID...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 84

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

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    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-filtered-list-of-groups-including-the-count-of-returned-objects

     

  • VictorIvanidze Profile Picture
    13,073 on at

    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?

  • soundharya Profile Picture
    249 on at

    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

     

  • Verified answer
    Carl__D Profile Picture
    84 on at

    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]'

  • v-jefferni Profile Picture
    on at

    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

  • stayinginsync Profile Picture
    139 on at

    @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-ID/td-p/1360618

     

    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.

  • Ritvik-Nag Profile Picture
    3 on at

    Looks like you forgot a "?" in your URL.

     

    It would be like:

     

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

     

     

    Selecting "Send an HTTP Request V2" from "O365 Groups" connector with above URL works for me.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard