So the idea is to run a powershell script to grant a group member send as rights to a distribution group.
The way we are planning to achieve this is the create a new item on the self service portal to allow group managers to change this on groups they are managers of and only for members of these groups.
The way we can achieve this is by adding a custom command to be run on the user but we are unsure on how we can use the group name in the script.
Add-RecipientPermission -Identity "Is there a variable for the group name if calling the command from a 'modify group' item" -Trustee "%name%" -AccessRights SendAs
Hope this makes sense
Thanks