question

DenisPasternak-3587 avatar image
0 Votes"
DenisPasternak-3587 asked AndreasBaumgarten edited

How to send approval message when adding members to distribution group by script

Hi,

my script automatically get information from staff API, then create mail contact and add to distribution group.

But I need some kind moderation before script add new user to distribution group. I know that it most likely not possible to do, but I must to ask.

How do you think how can I to realize this scenario and send a message for distribution group moderator. I don't ask how to do this :) but want to ask you the way I can do this (maybe someone has already done such task).

Exchange On-prem 2016

Thank you.

windows-server-powershelloffice-exchange-server-administration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered AndreasBaumgarten edited

For me your requirement sounds like something of a Service Request with Approval before the PowerShell script is doing his magic.

If so, working with a Service Request could look like this:

  • A form to put the required information in (user, distribution group, maybe some notes for the approver)

  • A notification activity to notify the approver there is a request to approve/reject

  • Start a PowerShell script to do the magic

Service Requests are normally done in an IT Service Management Tool. But you can build something similar with SharePoint.
Or you can use a solution like this: au2mator -> https://au2mator.com/powershell
There is a Community Version for free available: https://au2mator.com/freedownload/


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.