I'm trying to get information from $Request variable in Active Roles.
When a user edits/changes attributes on their user account via the ARWebSelfService web portal, it triggers a workflow which performs a number of checks on the data and includes…
I'm trying to get information from $Request variable in Active Roles.
When a user edits/changes attributes on their user account via the ARWebSelfService web portal, it triggers a workflow which performs a number of checks on the data and includes…
I was writing some code and it worked fine on my desktop. However, when I imported it into active roles, there were portions not functioning appropriately.
Turns out I was testing my code in PowerShell 7. As far as I can tell, Active Roles uses version…
I have the following function in PowerShell:
Function Get-ARSServers {
$searchRoot = "CN=Enterprise Directory Manager,CN=Aelita,CN=System,$([System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain().GetDirectoryEntry() | Select-Object -ExpandProperty…
Hello,
I'm having a requirement, we created couple of Virtual attributes in Active Roles and if we change a value of VA1 and then dynamically update the value of VA2.
VA1 - Dropdown field
VA2 - String field
Do let me know if you need more information…
I've a requirement to set the edsvaDeprovisionDeletionDate attribute value with future datetime using powershell code and its GeneralizedTime datatype. So I'm unable to set the value to the attribute using powershell. Could anyone please help me to…
Hello,
I would like to restore the deleted objects from the Deleted Objects container. I'm looking for a PowerShell script cmdlet or script.
Appreciate for the help in advance.
Thanks
How can I remove the first leading zero using powershell?
I have the following numbers and need them to have the first zero removed.
00010 >> 0010
05812>>5812
Any suggestions?
Hello,
How to get current logged in user through custom script in ARS?
Thanks
Hello,
I'm have tried below script in policy to uncheck and disable 'Create a mailbox' option in the contact creation wizard but its not reflecting on the screen.
function onGetEffectivePolicy($Request)
{
if($Request.Class -ne "contact"){return…
How can I explicitly instruct ARS to execute scripts in PowerShell v7
Hi all,
Using ARS 7.4.3. I have a rather long Powershell script which I would like to start from a workflow. Meaning the workflow starts an Active Roles Powershell script which then fires the external script. In a normal powershell command windows, I…
I wrote a custom powershell script and have it run in a workflow.
I'm having an issue with the try catch statement. If I remove try catch and just run the command inside the try method, the workflow executes fine. However, when a try catch is added,…
Source System: DB2 Table
Destination: Active Roles Server
I have the synchronization service read data from a table. This table is formed by user submission to deprovision accounts. From the sync server, I send a deprovision job over to Active Roles…
Hi,
I am currently struggling to figure out a strategy to ensure that user attributes are unique.
I did some reading and found an article that recommended what attributes should be unique: https://blogs.technet.microsoft.com/389thoughts/2017/02/03/uniqueness…
Hi,
I am trying to access Quest AD server via Powershell PSSession which is running in windows 7, powershell 5.1. But the Quest AD server running in Windows 12, Powershell 3.1.
I am facing the below error when add-snapin from PSSession
"Add-PSSnapin …
Hi all,
we are about to roll-out self-service for group management.
For that reason, I need to bulk-set primary and secondary owners.
While trying to get started I am experiencing issues in settings neccessary attributes.
I can set ManagedBy flag and…
Hello all,
Recently, we have implemented Workflows into ARS and I am trying to make sure that I can still automate certain processes. Currently, I am working with a security group that has a workflow implemented which sends an email to an approver which…
I need to implement a workflow/policy script that triggers onPostModify of the mail attribute, both for new users and changes to the mail attribute of existing users, and writes the user's employeeID and mail attribute to a CSV file and uploads it to…
Hello all,
I am currently scripting the creation of a shared mailbox using PowerShell and am running into a roadblock. I can create the new object without an issue, all included information is included however I cannot seem to add any users to the shared…
I have a .csv with 2 columns. Column 1 is called SourceGroup with a list of groups, and the other is DestinationGroup with a different list. I have a script I am trying to use that will Add the users from SourceGroup to the DestinationGroup, after the…
Hello,
I have a very large client with a very flat AD structure, would it be possible to script the creation of Managed Units and link Access templates to the Managed Units?
Also is there any recommendations about the number of managed units to have…
I am calling the script module below from a Workflow in order to create new accounts from a CSV.
When I run the workflow manually (right click and select 'Run') the result is 'Access id Denied'. However, if I run the script in the same user context from…
Hello,
I just upgraded to Active Roles 7.2 and trying to run a powershell script module with SQL cmdlets.
The cmdlets runs fine from ISE but I cannot get them to run from the script module.
I even run Import-Module SQLPS in the script module. This was…
We have a postcreate script (powershell) that we run to set permissions for a users home directory. I am attempting to convert the script from using the users samaccountname to use the users sid. The problem is that from the $Request I am only able to…
Hi all!
I need to dynamically find all attributes modified in function onPreModify($Request).
I do NOT want to something like:
function onPreModify($Request)
{
if ((IsAttributeModified "edsva_myattribute" $Request) -eq $true)
{
#do something…