• Working with Attributes from $Request

    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…

  • Can Active Roles take advantage of PowerShell version 7?

    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…

  • How to connect to ARS v8 from PowerShell?

    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…

  • Update Virtual attribute value based on another Virtual attribute value change.

    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…

  • Set the edsvaDeprovisionDeletionDate attribute value in powershell

    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…

  • How to access container in Active Directory using PowerShell

    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 

  • Quest Powershell to Remove Leading Zero

    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?

  • Get current logged in user

    Hello,

    How to get current logged in user through custom script in ARS?

    Thanks

  • Uncheck and Disable 'Creation of Mailbox' option in Contact creation wizard

    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…

  • Set Active Roles (ARS) Scheduled (PowerShell) Script Modules to Execute in PWSH.exe (v6+) vs POWERSHELL.exe

    How can I explicitly instruct ARS to execute scripts in PowerShell v7

  • How to call a remote powershell script from within a ARS workflow?

    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…

  • try catch not working

    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,…

  • Quickconnect Deprovision from DB2 Table to Active Roles

    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…

  • Creating users with unique attributes

    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…

  • Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 5.

    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 …

  • Issues setting attributes via PowerSHell

    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…

  • Possible to add a reason / justification for a request / workflow using PowerShell and Add-QADGroupMember?

    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…

  • QARS Workflow/Policy Script to capture onPostModify of the mail attribute for a user and then write user's employeeID and mail attribute to a CSV file for export to our Workday HR system

    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…

  • Unable to add users to a shared mailbox using Set-QADObject @{'edsva-MsExch-SharedMailboxUsers'='user'}

    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…

  • ARS PowerShell script to "Move" users from one group to another.

    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…

  • Create Managed Units and link Access Templates to Managed Unit by script or PowerShell

    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…

  • QARS Workflow New-QADUSER from CSV - Access is Denied

    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…

  • Import-Module SQLPS - In Script Module | Active Roles

    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…

  • Translating Objectsid to SID

    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…

  • Need to find out all attributed modified in function onPreModify

    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…