cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Abhilash
Helper III
Helper III

Fetch Azure AD Group details using Group Name.

Hi All,

 

We have a requirement that we need to add users to the Azure AD security group using the canvas app. We have the AD group name with us. Using the AD group name how we can find the Object OD of the group. How to achieve this requirement.

 

Any Sugession?

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @Abhilash :

You could use this graph API to create a custom connector to search for the group by group name:

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

vbofengmsft_0-1640916470158.png

vbofengmsft_1-1640916499532.png

In addition,if you do not know how to create a custom connector,I think this link will help you a lot:

How to connect Microsoft Graph API in PowerApps 

Best Regards,

Bof

 

View solution in original post

3 REPLIES 3
CNT
Super User
Super User

@Abhilash If you know the Group ID (you should be able to get it from your Admin), you can use the GetGroup function in the Azure Ad Connector to get the details.

 

Please remember to give a 👍 and accept my solution as it will help others in the future.

v-bofeng-msft
Community Support
Community Support

Hi @Abhilash :

You could use this graph API to create a custom connector to search for the group by group name:

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

vbofengmsft_0-1640916470158.png

vbofengmsft_1-1640916499532.png

In addition,if you do not know how to create a custom connector,I think this link will help you a lot:

How to connect Microsoft Graph API in PowerApps 

Best Regards,

Bof

 

Dliryc
Regular Visitor

Hello,

 

I found one working solution (in my case).

 

There is just one condition :

You need to know at least one member of the security or distribution group.

 

1) Use Get-groups of a user (the known user as stated above). You then have a list of all the ID groups of the user

Dliryc_0-1656065361584.png

 

2) Next step is using Get-Group by using "value"; it gets all ID groups of the user one by one and gives the display name of each

Dliryc_1-1656065405034.png

 

3) Use the "Condition" to test if the group Display Name matches the targeted group

Dliryc_3-1656071050207.png

 

4) If condition is true, then you found the id group, congratulations !

For an unknow reason, it's never "True" for me in this demonstration, but it worked in another flow, with dynamics values...

 

But I hope you can understand the logic !

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,689)