0 votes

Let's say I have a Business Rule that is fired prior to adding members to a group. Is it possible to get the number of objects being added to that group as part of a Powershell scripts? For example, if I'm adding 6 users to a group, is there an automatic variable that I can access that tells me that 6 objects will be added or is each added user treated completely independently?

by (90 points)

1 Answer

0 votes
by (222k points)

Hello,

Unfortunately, there is no such possibility as the business rule triggers separately for adding each member to a group.

Related questions

0 votes
1 answer

Hi, is it possible to use custom Powershell script to determine, who will be able to modify AD object property (for example managedBy)? So it is not manager of given object who can edit this property, but anyone who pass checks in Powershell script..

asked Apr 7, 2020 by KIT (520 points)
0 votes
1 answer

I'm working on user deprovision and need to re-assign a user's home directory to the manager's home directory after disabling. I found a PowerShell script on this site to ... retrieve the same for the Manager? I'm a PowerShell novice, so excuse my ignorance.

asked Feb 26, 2021 by mkvidera (60 points)
0 votes
1 answer

I'm trying to create a business rule that is executed before a user is created. I used the Adaxes tutorial Run PowerShell Script after Creating a User for ... execute. Are there permissions I'm forgetting somewhere? Thanks in advance for the assistance.

asked Jun 29, 2021 by lgibbens (320 points)
0 votes
1 answer

I need to insert this condition: # The condition is met if $Context.ConditionIsMet is set to $True. # $Context.ConditionIsMet = $False $day = Get-Date -UFormat %V $Context. ... I need to get week number of month in gregorian calendar. Thanks in advance, Simone

asked Jan 17 by Simone.Vailati (270 points)
0 votes
1 answer

Hello, we want to setup a scheduled report with all our teams (security groups) and their respective team-leader (specified in "managedBy" of security group). I get the name of ... the team-leader. And this is my problem... Can you help me with this problem?

asked Oct 9, 2020 by lohnag (100 points)
2,757 questions
2,491 answers
6,523 comments
1,468,879 users