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 (130 points)

1 Answer

0 votes
by (257k 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 team, I need to update users extensionAttribute6 after adding or removing them from a specific group. This is my setup: Group is updated based on rule set within Adaxes ... would like to update users after they were added or removed from this group. Thanks!

asked 5 days ago by wintec01 (440 points)
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 (910 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, 2022 by Simone.Vailati (430 points)
3,175 questions
2,878 answers
7,369 comments
507,611 users