0 votes

Hi!

I want to setup a scheduled action to send out a email once per week of what users each of our managers has as direct reports with a link to create a email to our helpdesk for each direct report line where they can request changes for that specific user.

The email report should contain the name of the direct report, expiry date of the account (if any) and the link to the helpdesk to request change for that specific user.

I think the script below is good base, but cant figure out how the filter is done since its currently setup to filter out disabled managers, I want the opposite ....

https://www.adaxes.com/script-repositor ... s-s219.htm

/Kaj

by (650 points)

1 Answer

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

Hello Kaj,

If you are using Adaxes version 2017.2 or earlier, have a loook at the following scripts from our repository:
https://www.adaxes.com/script-repositor ... ts-s39.htm
https://www.adaxes.com/script-repositor ... t-s423.htm

If you are using Adaxes 2018.2 or later, you can use the built-in Subordinates of user report. By default, the report is located in container Reports\All Reports\Users\Managers and Subordinates. For information on how to schedule reports, have a look at the following tutorial: https://www.adaxes.com/tutorials_Active ... eports.htm.

0

Thanks,

We're still running 2017.x version - I think the second script looks right, but how do I get it to loop through all our users in a target OU structure and execute on those that has directreports?

Or is it as simple as scheduling a powershell script in AdAxess and it will work through all users itself?

/Kaj

0

Hello Kaj,

The script should be executed on User objects. For the Scheduled task that runs the script to send notifications only to managers in a specific OU, you need to add the OU to the Activity Scope of the task as subtree. The Scheduled Task will look like the following:

0

Thanks got the hang of it.

One additional question, i've created a extra row in the table in the email with a link to generate a email to our helpdesk if there is something wrong on the user / expiry date etc. Can there by a direct link to modify user in the web UI and if so how would the URL look for that? Ofcourse the user would need to login first in between.

/KAj

0

Hello Kaj,

Unfortunately, there is no possibility to make a link after following which Help Desk can directly proceed with object modification. However, you can add a URL to the object itself and then Help Desk will only need to click the Edit button. The URL will look like the following: http://host.company.com/Adaxes/<WebUIName>/#/Browse/<UserDN>

where

  • <WebUIName> - specifies the Web Interface name (e.g. Admin);
  • <UserDN> - specifies the distinguished name (DN) of the target user (e.g. CN=John Smith,OU=My OU,DC=company,DC=com).

To generate a unique URL for each manager for which the script is executed, you need to use value references in the URL template. The URL in the script will look like the following: http://host.company.com/Adaxes/<WebUIName>/#/Browse/%distinguishedName%

Related questions

0 votes
0 answers

Or would the DLs have to be manually created and rules set up? I'm starting to look into features of the product before demoing, and was hoping there was an easy answer on this one. Thanks

asked Oct 7, 2020 by SIRI-Steele (40 points)
0 votes
1 answer

Hi, Is there a way I can create a rule based group or scheduled task in which the Direct reports of the direct reports are added to a group? So for example: CEO VP's ... in the list that no longer reports to a manager who reports to the CEO. Thanks in advance

asked Dec 22, 2022 by gareth.aylward (180 points)
0 votes
1 answer

Ideally looking to make this a rule based group, but report or business unit should work also. In our domain, service accounts become direct reports of the user who requested/ ... if a specific object is a/not a direct report. Is this possible? Thank you

asked Nov 14, 2023 by ThompsonAlex (40 points)
0 votes
1 answer

We would like to use the "Rule Based Groups" functionality that Adaxes has to create distribution groups where we have one group per manager and the members are the user ... so that the link doesn't break when changes happend to the managers AD object?

asked Oct 27, 2021 by odsven (1.8k points)
0 votes
1 answer

If a user is disabled, I would like the following process to be automated: Direct reports of this disabled user (user A) are reassigned to new active user (user B) who ... is sent to User B indicating User As direct reports have been transferred to User B

asked Apr 29, 2022 by Cavolick (60 points)
3,326 questions
3,026 answers
7,727 comments
544,678 users