0 votes

Hi

When adding a user from a group, Business rule with operation "Before updating a Group" is triggered.
If this is the right functionality, what is the purpose of operation "Before adding a member to a Group" ??

Technically the group is updated (member attribute), but literally not updates were made on the group,
because the operation "Before adding a member to a Group" should be used when adding members instead.

Please correct this and/or suggest a workaround.

Cheers

by (2.6k points)

1 Answer

0 votes
by (272k points)
selected by
Best answer

Hello,

This behavior is correct as the Member property of a group is modified.
As a workaround, you can add the If PowerShell script returns true condition to the Business Rule with the following script:

$Context.ConditionIsMet = $True

$operation = $Context.Action.GetOperationName($NULL, $Context.TargetObject, " ADM_ACTIONNAMEFORMAT_GENERAL")

If ($operation -eq "manage group members")
{
    $Context.ConditionIsMet = $False
}


The script returns False if only Member property is updated, and the Business Rule is not triggered.

Related questions

0 votes
1 answer

Hello! We are using the current version of Adaxes and are in the process of making the password self-service available to our users. We have installed the self-service client ... are doing wrong? Thanks Erik [EDIT]: Corrected image links. Sorry about that...

asked Jun 6, 2014 by eventit (160 points)
0 votes
1 answer

Hello, We have recently begun setting up Adaxes and are trying to exercise least privilege on both of the accounts we have created to manage the service. ... account is also given the appropriate Security Role within the Adaxes administrative console.

asked Sep 12, 2023 by just.kon (20 points)
0 votes
1 answer

Is it possible to reset a password and force the user to change password at next login within the same action of a custom command? When they are split out into ... like to request this functionality be added to the reset password action in the future.

asked Mar 20, 2020 by yourpp (540 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 (20 points)
3,348 questions
3,049 answers
7,791 comments
545,058 users