Hello,

is it possible to update a user attribute (extensionAttribute5) with the name of the group (Name), the user was just added to?

Example: In Group A gets a new member User A. After saving Group A, the attribute Name of Group A should be written in the attribute extensionAttribute5 of User A.

Can you please help me?

by (160 points)

1 Answer

by (305k points)
0 votes

Hello,

Yes, it is possible. You can use the below script in a business rule triggering After adding a member to a group.

$member = $Context.BindToObject("Adaxes://%member%")

$member.Put("extensionAttribute5", "%name%")
$member.SetInfo()
by (160 points)
0

Hello,

thank you for the quick answer. In the first try it all worked, extensionAttribute5 was changed. I tried again, put the user in another team, but nothing changed. extensionAttribute5 has still the value from the first try.

by (305k points)
0

Hello,

Make sure that the Activity Scope of the business rule includes all the groups you need.

by (160 points)
0

Hello, after several tries i know what is wrong. In my first try i added the user to a security group. Everything worked fine. If i add the user to a distribution group, nothing happens. What changes are necessary for distribution groups?

by (305k points)
0

Hello,

No changes are required. The workflow does not depend on the group type. You just need to include the group into the activity scope of the business rule.

image.png

by (160 points)
0

Hello, the scope for this rule is set on two OU, all groups are inside this two OU's. image.png If a member is added to a security group, everything works fine. image.png It works for 911-Technik(security group) but for 912-IT(distribution) it doesn't

by (305k points)
0

Hello,

Do you actually see the 912-IT group in Adaxes? How exactly do you add members to the group? Please, provide all the steps you take with screenshots. You can post the screenshots here or send to us at support@adaxes.com.

Related questions

Thanks for the info. I'm now grabbing the %adm-ManagerUserName% value, but need to remove the final 21 characters of it so it contains only their username and not our ... this in the PowerShell Script Editor for my business rule, I get the following error:

asked Mar 11, 2021 by mkvidera (60 points)
0 votes
1 answer

How do change the display name of a custom attribute in version 2017.2? All the information I am finding contains links that bring me to 2018 version

asked Nov 1, 2018 by hgletifer (1.3k points)
0 votes
1 answer

Hello, is it possible to change the name (view) of a custom attribute in the WebUI? thx.

asked Jan 25, 2012 by mmichard (360 points)
0 votes
1 answer

I have found the script to force membership updates for all rule based groups, but is there a script to force update a specific rule based group? I am looking to add a ... I would like to trigger a rule based group that adds members of the manual group. Thanks

asked Jul 9 by msheppard (840 points)
0 votes
1 answer

Receive "Index operation failed; the array index evaluated to null. Stack trace: at , : line 104>" and "Index operation failed; the array index evaluated to null. ... Found $GroupName, $GroupDN." } } #foreach write-output "" Write-Output "" Stop-Transcript

asked Apr 14, 2022 by jbahou (20 points)
0 votes
1 answer