0 votes

We would like to have a business unit that is based on an adaxes custom attribute. I don't see a way of doing this. Do you all have any ideas?

by (1.6k points)

1 Answer

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

Hello Mark,

Unfortunately, there is no such possibility using Business Unit membership rules directly. As a solution, you can use a Scheduled Task and two PowerShell scripts. The scripts will add/remove a membership rule specifically for each user based on the custom attribute value. The task will look like the following: image.png Additionally, to make sure that after updating the custom attribute users are directly added/removed from the Business Unit, a Business Rule triggering After updating a user will be used: image.png If this approach meets your needs, we will provide you with the scripts.

0

Hi there, i am trying to accomplish this as well. Would it be possible to get a copy of the scripts?

0

Hello Richard,

Using scripts as described above is one of the approaches. However, it can be done without using scripts if you use an Active Directory attribute instead of an Adaxes custom one. In this case you will just need to specify a corresponding membership rule in the Business Unit. If required, the AD attribute can be updated based on a custom attribute update using a Business Rule like the following: image.png If you still want to use scripts, have a look at the following article from our repository: https://www.adaxes.com/script-repository/addremove-membership-rule-to-business-rule-for-target-object-s583.htm.

Related questions

0 votes
1 answer

I would like to know if it is possible to create a field in the web UI under user management to "assign" a machine to a user. I would like to be able to put the ... be moved to "workstation OU. Is there s custome field that can be used to accomplish this?

asked Oct 22, 2020 by copatterson (50 points)
0 votes
0 answers

It would be great if we could run a report on an OU and get the following information: Computer Name Local Accounts Whether or not the account is an administrator ... this is less important. Thanks in advance. Your support team is great and appreciated.

asked Sep 8 by mikek (80 points)
0 votes
1 answer

Hello, Is it possible to grant members of a business unit permission to run a custom command? I know I'm able to give permission to a user/group to run a cmd on a business ... that can run the command. I've not been successful with any of my attempts to do so.

asked Mar 23, 2017 by JoCCCsa (100 points)
0 votes
1 answer

Dear Is it possible to change the values of a custom attribute (adm-CustomAttributeTextMultiValue4) when selecting a value from another custom attribute (adm-CustomAttributeText1). For ... , 2Latijn, 3Latijn, etc... Is this possible? Sincerly Hilmi Emre Bayat

asked Aug 26, 2019 by hilmiemrebayat (120 points)
0 votes
1 answer

Is it possible to script having users added (or removed) from a Security Group based on another AD Attribute? I have found ways to do this in Powershell (something like): ... just utilize the PS script and just run it through Adaxes on a timed fashion? Thanks!

asked Oct 7, 2014 by PunkinDonuts (360 points)
2,554 questions
2,297 answers
6,126 comments
660,166 users