0 votes

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 reference. The script executes when using the “Run…” button in the script window. “Run as” is set to Adaxes service account. When I try to create a user through the “Administrator” web interface, the business rule is recognized and tries to execute. However, I get an “Access Denied” error when the script tries to execute.

Are there permissions I’m forgetting somewhere? Thanks in advance for the assistance.

by (320 points)
0

Hello,

For troubleshooting purposes, please, post here or send us (support@adaxes.com) the following:

  • A screenshot of the business rule you have.
  • A screenshot of the error message you are facing.
  • The script you are using in TXT format.

Any additional details will be much appreciated.

0

Hello,

Thank you for your response. I have provided additional details through support@adaxes.com.

1 Answer

0 votes
by (228k points)

Hello,

Thank you for the provided details. The issue occurs because the account used to register your domain in Adaxes does not have required permissions to create new users. By permissions here we mean native Active Directory permissions, not those granted by Adaxes security roles. For information on how to check/change the account, have a look at the following help article: https://www.adaxes.com/help/ChangeManagedDomainServiceAccount.

Related questions

0 votes
1 answer

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 ... that tells me that 6 objects will be added or is each added user treated completely independently?

asked Apr 20 by ngb (90 points)
0 votes
1 answer

I've modified the script here https://www.adaxes.com/script-repository/import-users-to-be-deprovisioned-s3.htm to do bulk deprovisioning of accounts via a .csv file. It ... share and folder. Why is this throwing this error? They path works in file explorer.

asked Mar 26, 2021 by johnsonua (390 points)
0 votes
1 answer

Hi Forum, I have another quick question. There's a Business Rule with an Approval on Adding Users to certain Groups. Is it possible to trigger this Business Rule when ... scope from a Powershell script (add-admgroupmember ...)? Thanks for your Help Cheers

asked Oct 26, 2015 by esoAdxAdmin (650 points)
0 votes
1 answer

How can I execute a Business Rule through PowerShell? I have a Business Rule that fires when a User is created. I have a custom field on the User that can be updated though ... based on the value in this custom field, when the User is updated. Is it possible?

asked Feb 10, 2014 by sdavidson (730 points)
0 votes
1 answer

When running a PowerShell script as an action in a custom command, you can set the script to run as a different account and then use the RunAs property in the ... Is there another way to get the Adaxes service account's credentials from within the script?

asked Mar 31 by KelseaIT (320 points)
2,807 questions
2,541 answers
6,615 comments
65,397 users