0 votes

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

0 votes
by (294k points)

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()
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.

0

Hello,

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

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?

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

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

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

0 votes
1 answer

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

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

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

When we create a shared mailbox, we create an associated mail-enabled security group. In the security group I want to populate the description field with the name of the shared mailbox ... How can I get just the "name" of the shared mailbox versus the full DN?

asked Feb 4, 2021 by atnorman (120 points)
3,588 questions
3,277 answers
8,303 comments
548,089 users