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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / New user added to AD t...
Power Apps
Unanswered

New user added to AD then Added to E-mail Groups and Calendar Shares

(0) ShareShare
ReportReport
Posted on by 30

Do you know of a way that I can build a app and it automate looking at all of certain users via my Azure AD and it look at @domain.com do the following:

 

1. Add them to Distro Group

2. Add them to calendars with certain rights.

 

Look forward to hearing feedback.

Categories:
  • v-yangar-msft Profile Picture
    Microsoft Employee on at

    Hi @PedroNL ,

     

    Based on your description, I think you want to build an app to automatically display all of certain users, then you want to add them to distro group and calendar with certain rights.

    Because I don't know the type of your distro group. 

    I assume that your Group is security Group, you can add them to the Group as below:

    v-yangar-msft_0-1611826669533.png

     

    // 12717916-8cc5-480d-b0c2-fc3c773f8456 is the group ID.

    When I click this add button, I can find ‘ada’ is a member of this group:

    v-yangar-msft_1-1611826669535.png

     

    If your Group is distribution group, I'm afraid this isn't possible to do in the PowerApps. Because we can only add members to security groups and mail-enabled security groups currently.

     

    Besides, if you want to add these users to Calendar with certain right. I am sorry that we could’t realize it. Because not only the related connector doesn't provide this function, Microsoft also doesn't provide any API to add users to calendars with certain rights, so we can’t use custom connector to realize it.

     

    Finally, you want to build a app, it automate looking at all of certain users via your Azure AD. Please refer to the following steps:

    1.You can add Office 365 user connector and Azure AD connector in your apps:

    v-yangar-msft_2-1611826669536.png

     

    2.Set the OnStart property of APP to:

    ClearCollect(allUsers,Filter(Office365Users.SearchUser({top:200}),"yourtenant.onmicrosoft.com" in Mail))

    // this formula aims to new a collection which can list all the users in your AAD when you open the app

    //because Azure AD connector can only show the specific group member, here I use  office 365 user connector.

    3.Add a gallery and set the collection as the data source of gallery.

    allUsers

    // allUsers is the collection I created it before.

    4.When you open this app, you will find all of the certain users are displayed in your app:

     

    v-yangar-msft_3-1611826669541.png

     

     

    Hope it helps!

     

    Thanks,
    Arrow

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard