Home

Best way to setup a process for emailing a dynamic security group in Office 365

%3CLINGO-SUB%20id%3D%22lingo-sub-953256%22%20slang%3D%22en-US%22%3EBest%20way%20to%20setup%20a%20process%20for%20emailing%20a%20dynamic%20security%20group%20in%20Office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-953256%22%20slang%3D%22en-US%22%3E%3CP%20class%3D%22_1qeIAgB0cPwnLhDF9XSiJM%22%3EQuestion%20for%20the%20Hive%20Mind.%20As%20the%20title%20suggests%2C%20I%20am%20trying%20to%20setup%20a%20process%20for%20emailing%20a%20dynamic%20security%20group%20in%20Azure%20AD.%20The%20dynamic%20security%20group%20is%20for%20all%20active%20users%2C%20excluding%20users%20with%20specific%20job%20titles%20(Service%20Accounts%2C%20etc).%20As%20any%20organization%2C%20we%20have%20a%20lot%20of%20new%20and%20terminated%20users%2C%20so%20I%20need%20a%20security%20group%20that%20automatically%20updates%20based%20on%20my%20defined%20variables.%20I'd%20like%20to%20send%20out%20communications%20to%20this%20security%20group%20via%20email%20and%20I%20thought%20I%20would%20be%20able%20to%20create%20a%20Office%20365%20group%20and%20tie%20it%20to%20a%20security%20group%20-%20silly%20me%20for%20thinking%20that%20would%20be%20a%20logical%20thing%20to%20do.%3C%2FP%3E%3CP%20class%3D%22_1qeIAgB0cPwnLhDF9XSiJM%22%3EI%20know%20mail-enabled%20security%20groups%20and%20dynamic%20distribution%20groups%20are%20a%20thing%20in%20EAC%2C%20but%20they%20seem%20convoluted%20in%20setting%20up%20and%20each%20are%20not%20a%20tenable%20solution.%20Mail-enabled%20sec%20groups%20do%20not%20allow%20adding%20other%20security%20groups%20or%20adding%20users%20dynamically%20via%20rule%20attributes.%20Dynamic%20distribution%20lists%20allow%20rule%20based%20attributes%2C%20but%20I%20don't%20understand%20their%20%22Custom%20Attribute%22%20defined%20words%20and%20how%20they%20relate%20to%20a%20user%20account.%3C%2FP%3E%3CP%20class%3D%22_1qeIAgB0cPwnLhDF9XSiJM%22%3EAdvice%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-953256%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20AD%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-956611%22%20slang%3D%22en-US%22%3ERe%3A%20Best%20way%20to%20setup%20a%20process%20for%20emailing%20a%20dynamic%20security%20group%20in%20Office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-956611%22%20slang%3D%22en-US%22%3E%3CP%3EDynamic%20security%20groups%20are%20not%20mail%20enabled%2C%20so%20you%20cannot%20use%20them%20for%20that%20purpose.%20You%20can%20create%20an%20Office%20365%20Group%20with%20dynamic%20membership%20from%20the%20same%20place%20though%2C%20and%20that%20will%20do%20the%20trick.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnd%20to%20correct%20your%20latter%20statement%20-%20you%20can%20add%20other%20security%20groups%20as%20a%20member%20of%20mail-enabled%20security%20group%2C%20however%20as%20those%20are%20not%20recognized%20as%20valid%20Exchange%20recipients%2C%20you%20will%20still%20not%20be%20able%20to%20use%20them%20for%20email%20purposes.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-959785%22%20slang%3D%22en-US%22%3ERe%3A%20Best%20way%20to%20setup%20a%20process%20for%20emailing%20a%20dynamic%20security%20group%20in%20Office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-959785%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3BI%20would%20prefer%20not%20to%20use%20an%20Office%20365%20Group%2C%20as%20its%20not%20meant%20to%20be%20collaborative%20or%20social%20based.%20This%20dynamic%20group%20is%20solely%20meant%20for%20communications.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELooks%20like%20my%20only%20route%20here%20is%20creating%20a%20dynamic%20distribution%20group%20using%20rules.%20I%20don't%20understand%20what%20the%20custom%20attributes%20(1-15)%20point%20to%20in%20the%20attributes%20of%20the%20Azure%20AD%20user%20accounts%3F%20When%20I%20create%20a%20dynamic%20security%20group%2C%20I%20can%20point%20to%20attributes%20such%20as%20%22jobTitle%22%20and%20a%20value%20in%20that%20field.%20Can%20someone%20please%20explain%20that%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-959815%22%20slang%3D%22en-US%22%3ERe%3A%20Best%20way%20to%20setup%20a%20process%20for%20emailing%20a%20dynamic%20security%20group%20in%20Office%20365%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-959815%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can.%20The%20UI%20limits%20you%20to%20just%20a%20handful%20of%20attributes%2C%20user%20PowerShell%20and%20the%20New-DynamicDistributionGroup%20cmdlet%20instead.%3C%2FP%3E%3C%2FLINGO-BODY%3E
jasonbach
New Contributor

Question for the Hive Mind. As the title suggests, I am trying to setup a process for emailing a dynamic security group in Azure AD. The dynamic security group is for all active users, excluding users with specific job titles (Service Accounts, etc). As any organization, we have a lot of new and terminated users, so I need a security group that automatically updates based on my defined variables. I'd like to send out communications to this security group via email and I thought I would be able to create a Office 365 group and tie it to a security group - silly me for thinking that would be a logical thing to do.

I know mail-enabled security groups and dynamic distribution groups are a thing in EAC, but they seem convoluted in setting up and each are not a tenable solution. Mail-enabled sec groups do not allow adding other security groups or adding users dynamically via rule attributes. Dynamic distribution lists allow rule based attributes, but I don't understand their "Custom Attribute" defined words and how they relate to a user account.

Advice?

3 Replies

Dynamic security groups are not mail enabled, so you cannot use them for that purpose. You can create an Office 365 Group with dynamic membership from the same place though, and that will do the trick.

 

And to correct your latter statement - you can add other security groups as a member of mail-enabled security group, however as those are not recognized as valid Exchange recipients, you will still not be able to use them for email purposes. 

@Vasil Michev I would prefer not to use an Office 365 Group, as its not meant to be collaborative or social based. This dynamic group is solely meant for communications. 

 

Looks like my only route here is creating a dynamic distribution group using rules. I don't understand what the custom attributes (1-15) point to in the attributes of the Azure AD user accounts? When I create a dynamic security group, I can point to attributes such as "jobTitle" and a value in that field. Can someone please explain that?

You can. The UI limits you to just a handful of attributes, user PowerShell and the New-DynamicDistributionGroup cmdlet instead.

Related Conversations
Extentions Synchronization
Deleted in Discussions on
3 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies