0 votes


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 access and send ass rights when they create a shared mailbox using Adaxes.

What I've come up with so far is that I've created a function for creating the security groups, and one function for creating the shared mailbox.
My idea is that the create shared mailbox function will execute a powershell script that adds the security group with full access and send as rights to the mailbox.

The last part of the group name attribute for the security group equals the display name for the shared mailbox
$displayname = %displayName%
$groupname = "grp_mail_" + $displayname

Group name security group: grp_mail_mymailbox
Display Name Shared Mailbox: mymailbox

This is a set standard that doesnt differ when they use these functions.

What I need is a powershell script that can add the security group with the required rights (full access/send as) to the shared mailbox, identified by the group name/display name, and if possible with just using AD/Adaxes attributes. If possible I would like to save the hazzle to set up an external powershell session.

To explain this in another way. Out of the box this can be sorted by using the edit exchange properties function, and then adding the security group with the required permissions. But the customer feels that that solution will be to time consuming to have to go through 3 steps to fix this (create sec.group, create mailbox, edit rights). Therefore they want us to combine the creation of the mailbox with adding the access to the sec.group.

I think that this should be possible to solve since the last part of the group name and the display names are always the same. This makes it easy to identify both the mailbox and the sec.group using a script, and then add a command that adds the sec.group. with sufficient access.

Unfortunately I lack the powershell knowledge to solve this matter myself. So I greatly hope that there are someone who can help me out here :-) That would be greatly appreciated.

Best Regards,
Kristoffer Høie.

by (250 points)

Please log in or register to answer this question.

Related questions

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 (6.2k points)
0 votes
1 answer

Ive developed a powershellscript that is able to add this functionality, feel free to improve or use. Iv'e used the msExchExtensionCustomAttribute3 and then renamed the attribute in Adaxes to " ... + ": " + $SamId.SamAccountName, "Information") } else{} } } }

asked Dec 4, 2012 by nevarion (250 points)
0 votes
1 answer

Is it possible to script having users added (or removed) from a Security Group based on another AD Attribute? I have found ways to do this in Powershell (something like): ... just utilize the PS script and just run it through Adaxes on a timed fashion? Thanks!

asked Oct 7, 2014 by PunkinDonuts (2k points)
0 votes
1 answer

Hallo! a very interesting feature would be the capability for a user to add herself to a security group directly from inside the Self service interface, as it is already possible for distribution lists. How can be implemented this? regards, Giovanni

asked Jun 17, 2012 by gbar (250 points)
0 votes
1 answer

Hello, Is there a PS script available to add a user to an o365 group (o365 only - not synced to AD) that can be used after user creation in a business rule? Thanks very much.

asked Oct 31, 2018 by Jasonmh (2.8k points)
2,251 questions
2,011 answers
25,327 users