I'd like to run a powershell script Before Updating a User Account, which I can check what the exchange mailbox permissions before and after the change. I need to be able to both report on what changed, before and after, with friendly names - not SID's or DN's.

What's the best way to do that? Thanks, Jay

ago by (60 points)

1 Answer

ago by (306k points)
0 votes

Hello Jay,

You can make output to the execution log using PowerShell scripts in business rules triggering Before/After modifying Exchange properties of a user. The following article should be helpful: https://adaxes.com/sdk/SampleScripts.RetrievingMailboxProperties.MailboxDelegation. To make output in Adaxes scripts, use method $Context.LogMessage. Also, you can directly use $Context.TargetObject instead of connecting to Adaxes service and binding to the target user.

Related questions

How would a script be written that accomplishes the following task? In this scenario, UserA would be selected with the Modify user action, then UserB would be input to ... rule that runs the script to allow reviewer permissions on UserA's calendar for UserB

asked Dec 6, 2012 by mdeflice (350 points)
0 votes
1 answer

The following script in the repository (https://www.adaxes.com/script-repository/check-mailbox-size-s450.htm) is throwing an error for us today. We are on version 3.17. ... 49GB' returns true. You cannot call a method on a null-valued expression. Please advise

asked Jul 22 by msheppard (880 points)
0 votes
1 answer

I'm trying to run a powershell script that triggers before updating a user, but only run it if the action comes from the self-update web interface. Is that possible?

asked Sep 4 by jaymallery (60 points)
0 votes
1 answer

Hi, I have a question in regard to https://www.adaxes.com/questions/13241/mail-enabled-security-group-not-found-in-o365 My rule is creating shared mailbox and ... www.adaxes.com/script-repository/check-whether-user-has-mailbox-in-exchange-online-s303.htm)?

asked Jul 18, 2023 by wintec01 (2.3k points)
0 votes
0 answers

Hello. I'd like add the ability for people to remove full access to a mailbox, while not allowing them to grant access. I've come up with a hacky way to ... via the exchange delegation properties of the web interface. Any help would be appreciated. Thanks!

asked Jul 25, 2016 by EgotisticalGiraffe (350 points)
0 votes
0 answers