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 (228k 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

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 by Cavolick (60 points)
0 votes
1 answer

I need a list of all the URLs that Adaxes creates in IIS on the server Adaxes is installed on.

asked Feb 6, 2020 by DaralenManta (20 points)
0 votes
1 answer

Hi, Can you tell me how to look up a list of last logged-in users for computers from specific OU? Have OU called Laptops and need to know who as last person logged into ... username-of-last-user-who-lgged-on-to-computer-s269.htm but it' s not design for OU

asked Dec 2, 2019 by roberttryba (70 points)
2,807 questions
2,541 answers
6,615 comments
65,717 users