0 votes

Hi,

I want to add approval for specific groups with temporary membership based on this script: https://www.adaxes.com/script-repository/temporary-group-membrship-s533.htm

I worked in past with $Context.SubmitForApproval and have few questions: Where do I place this command? I want to send an email out, then send approval for adding user and updating group to set records for $memberListProperty

Will the full script be executed until $Context.SubmitForApproval and then the rest is on hold?

ago by (1.8k points)

1 Answer

0 votes
ago by (301k points)

Hello,

There is no need to use $Context.SubmitForApproval as it will not do what you need in this case. It should be done using a business rule triggering Before adding a member to a group with the corresponding built-in action. The following tutorial will be helpful: https://www.adaxes.com/help/RequestApprovalForAddingMembersToGroups. Also, you need to replace this line in the script

$group = $Context.BindToObjectByDN($dn)

with the below one

$group = $Context.BindToObjectByDNEx($dn, $True)
0

Thanks for the feedback.

In case we modify the command, so we add multiple users to one group - this would trigger for each member an own email, no?

Would it be possible to have only one approval mail send with all added members?

0

Hello,

In case we modify the command, so we add multiple users to one group - this would trigger for each member an own email, no?

Yes, that is the only way.

Would it be possible to have only one approval mail send with all added members?

Unfortunately, there is no such possibility.

Related questions

0 votes
1 answer

Hi support, We have security groups named like Test-Group--Users, where is different for each group. I have a powershell query which gets a list of those Test-Group--Users" ... only Test-Group-<variable>-User that user is member of but it is an array

asked Oct 31, 2024 by Vish539 (500 points)
0 votes
1 answer

We are looking for a way to allow AD users to manage group memberships of groups they have been set as Manager for - and would like to know if we can achieve this with Adaxes? We are thinking a easy to use web portal.

asked Apr 17, 2024 by Nicolaj Rasmussen (20 points)
0 votes
1 answer

Is it possible using PowerShell to copy group memberships from an already existing user without copying 2 specific groups named for example test and test 1 ? We are currently ... groups are not included. I can share the PowerShell script if needed. KR, Cas

asked Oct 30, 2023 by Cas (200 points)
0 votes
1 answer

Rule-based membership fails for security enabled distribution group with error "The term 'Add-DistributionGroupMember' is not recognized as the name of a cmdlet, function, ... Exchange Online before running this PowerShell command. Here is rule based set up.

asked Mar 7, 2023 by KIT (1.0k points)
0 votes
0 answers

Hi, I'm trying to create a business rule that basically says if a user is a member of group a, they can't be a member of group b. Optionally would also like to ... removed from group a. Can i get some guidance on how I could accomplish this in adaxes?

asked Mar 14, 2022 by blaiseb (120 points)
3,674 questions
3,358 answers
8,494 comments
549,282 users