This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Adding variable content into the Stop/Break message box

Hi,

is it possible to add variable text in the Stop/Break message pop-up box that the admin is getting when it applies? I am working on a way to limit the number of member additions to a group within a time frame of 4 hours. Would be nice to present the admin the number of minutes until it is allowed again. The script is generally finished in my ISE, but I would like to implement it somehow into ARS and I am struggling as I don't find a way of letting the user know (except from mail - which I don't like).

Any other ideas are welcome.

We are running ARS 6.7.

Regards

Richard

Parents
  • Hi again,

    I solved my problem by reading the SDK. You can use "throw" to get a pop-up which text you can define using variables. This is a shortened example from the SDK.

    function onPreModify($Request)
    {
      $Error = "Manager must belong to the user's department."
      if(($Request.Class -eq "user") -and ($Request.Get("manager") -ne $null))
         {
          $Dirobj.GetInfoEx(@("Department"), 0)
          $Manager = Get-QADObject $Request.Get("manager")
          if($Dirobj.get("Department") -ne $Manager["Department"])
                   {
                     throw "Administrative Policy: $Error"
                   }
           }
    }

    Hope this is helpful for others as well.

    Regards
    Richard

Reply
  • Hi again,

    I solved my problem by reading the SDK. You can use "throw" to get a pop-up which text you can define using variables. This is a shortened example from the SDK.

    function onPreModify($Request)
    {
      $Error = "Manager must belong to the user's department."
      if(($Request.Class -eq "user") -and ($Request.Get("manager") -ne $null))
         {
          $Dirobj.GetInfoEx(@("Department"), 0)
          $Manager = Get-QADObject $Request.Get("manager")
          if($Dirobj.get("Department") -ne $Manager["Department"])
                   {
                     throw "Administrative Policy: $Error"
                   }
           }
    }

    Hope this is helpful for others as well.

    Regards
    Richard

Children
No Data