I would like to grab all users in a US state and add them with full access rights to a shared mailbox.

Is there a script already in the repository for this? I checked but couldn't find one that fit.

I am trying to do the following

Run a scheduled task>If state = KY THEN run script to add each user.

I don't think there is any way to do this with the interface.

Thanks!

by (880 points)

1 Answer

by (308k points)
0 votes

Hello,

You can use this script in a scheduled task like below. In this case, you will not need to gather delegates in the script. image.png

If it is a one-time process, you can just find all the required users and execute a custom command with the script on them.

Related questions

Hi, I'm currently working with setting up a new Adaxes solution for a customer at my company. The customer needs a solution that can add a security group with full ... help me out here :-) That would be greatly appreciated. Best Regards, Kristoffer Høie.

asked Jun 29, 2016 by krihoie (20 points)
0 votes
0 answers

We would like the membership in a distribution group to be based on a particular M365 license a user has (for example, Microsoft Copilot for Microsoft 365 (SKU part number ... the group. Is there way to do that by making it a rule-based group?

asked 3 days ago by RayBilyk (290 points)
0 votes
1 answer

Hi Everyone I want to create a custom command where I can select multiple users and then select a mailbox and give them full access to the mailbox. Is there a way to do it? Thank you for help

asked Nov 2, 2021 by Sandberg94 (340 points)
0 votes
1 answer

Is is possiable to send Automate an email to go out to the users of a delegated mailbox? We give Full Access and Send As access of disabled accounts to thier replacements for 30days ... then send a email to each one of them? Adaxes version: 2017.2 3.8.14823.0

asked Oct 28, 2019 by hgletifer (1.3k points)
0 votes
1 answer

how to automatically grant a user's manager access to their network drive and onedrive during a user's deprovisioning. I don't want to manually grant access to the ... -prem file server and onedrive. Can this be incorporated in the user deprovisioning script?

asked Jan 28, 2025 by Fausat (20 points)
0 votes
1 answer