0 votes

Pretty simple question. Upon user provisioning, based on business unit, is there a way to have the new O365 mailbox and user be added to an existing distribution group in O365?

I imagine if I was using DirSync, I could do this with local AD distribution groups, but that is currently not the case.

by (50 points)
0

Hello,

Yes, this is possible using a PowerShell script executed automatically as a part of user provisioning. We've asked our script guys to make a sample for you. We'll update this topic as soon as they come up with something.

0

Thank you so much! This is literally the piece of script that is holding us back from purchasing a license, so any help would be spectacular!

1 Answer

0 votes
by (216k points)
selected by
Best answer

Hello,

The necessary script is ready. Find it in our Script Repository: http://www.adaxes.com/script-repository ... t-s254.htm.

Pay attention that creating an Office 365 account takes some time, usually several seconds. Thus, if you execute the script as a part of user provisioning, it is highly probable that by the time the script runs, the user account won't be created in Office 365 yet. Thus, instead of adding the script to your provisioning process, we recommend creating a Scheduled Task that will update membership of users in Office 365 groups on a regular basis. For information on how to create a Scheduled Task, see Schedule Tasks for Active Directory Management. To add the script to your task, use the Run a program or PowerShell script action.

Related questions

0 votes
1 answer

In our environment, we have dirsync setup to assign the Office365 username based on the email property of the on-prem user. In Adaxes, if a newly created user doesn' ... instead utilize a property of our choosing? Currently using product version: 3.10.15918.0

asked Nov 8, 2018 by blaiseb (120 points)
0 votes
1 answer

I've looked at https://www.adaxes.com/script-repository/copy-group-membership-from-specified-user-s590.htm. is there away to change from group names to a group type? Like exclude all distribution groups?

asked Dec 4, 2023 by Derek.Axe (480 points)
0 votes
1 answer

Good afternoon, Is there a script for adding a user to an already existing Office 365 Shared Mailbox? I want to add this script onto the onboarding rules I have added already.

asked May 7 by ocanizales (60 points)
0 votes
1 answer

I have tried it using the Custom Commands Action "Add the user to a group", which only allows me to add the user to one group at a time, and can't use the multiple DNs that the ... I can't get it to work. Could you assist me in finding the best way to do this?

asked Jan 16 by dominik.stawny (210 points)
0 votes
1 answer

Dear Support, I'm using this Script for adding User to Groups. Import-Module Adaxes $User = "%distinguishedName%" $group = get-AdmGroup "KendoxUser_%adm-CustomAttributeText17%" -Properties ... is in a Subdomain it doesn't work. Do you have any idea why?

asked Jan 28, 2014 by Napoleon (700 points)
3,384 questions
3,083 answers
7,832 comments
545,501 users