0 votes

Hello

We need to allow distribution group managers to grant send as permissions for individual members of each group. Is there a way to reference the group name when running a user custom command from a Modify Group web interface item?

Many Thanks ReferenceGroupName.png

by (20 points)
0

Hello,

Sorry for the confusion, but we are not sure what exactly you need to achieve. Could you, please, clarify what exactly stands for reference the group name when running a user custom command? A live example of the desired behavior will be much appreciated.

0

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

1 Answer

0 votes
by (206k points)

Hello,

Thank you for clarifying. It can be done using the AD Object picker parameter in your custom command. For details on using the parameters, see step 4 of the following tutorial: https://www.adaxes.com/tutorials_ActiveDirectoryManagement_CreateCustomCommand.htm. In this case, the script part will look like the following:

Add-RecipientPermission -Identity "%param-MyParam%" -Trustee "%name%" -AccessRights SendAs

Related questions

0 votes
1 answer

Is there a way to get the name of the user who approved a request and supply that to a step inside of a custom command? For example, HR submits a status change for an employee. ... and pass it as a param in a custom command that is called in one of the steps?

asked May 12 by davfount90 (20 points)
0 votes
1 answer

I would like to add the following logic into a Powershell script that will be triggered on 'After Create User'. Read the value of the 'title' property of the user just created ... 'True' or 'False'. Could you assist with how to script this please? Many thanks.

asked May 1, 2020 by Bernie (310 points)
0 votes
1 answer

Hello We are using the script you created for us to upload the employees photo based on their employee ID which works fantastic. The script is below: $picturePath = "picture path" # ... I am missing something obvious but can't see how to do it :? Thank you.

asked Jan 9, 2015 by CBurn (700 points)
0 votes
1 answer

Adaxes version is 2018.2. I have build a custom report, and I don't want the 'Name' column with the pictures to appear in it. But it seem to be mandatory, it is greyed ... . Is there a way to remove / hide / or change the mandatory attribute or column ? Thanks

asked Jan 9, 2020 by Isabelle (50 points)
0 votes
1 answer

Hi there, i've a custom command with multiple powershell scripts (for clearance reasons). If for example the frist script produces an error i Write an Error but the next ... tried with an simple exit 1; I only Write-Errors on issues. Kind regards, Constantin

asked Jul 23 by Constey (170 points)
2,556 questions
2,297 answers
6,126 comments
667,861 users