0 votes

Hi, I am Create a Custom Command. The Parameters UI Control is AD object picker. image.png

The Action is add the Parameters in Extension Attribute 1 image.png

But it will add the AD DN. If I want to add LogonName, what parameters should I enter?

by (90 points)

1 Answer

0 votes
by (288k points)

Hello Will,

But it will add the AD DN

This behavior is by design.

If I want to add LogonName, what parameters should I enter?

You can use a text parameter and manually enter the required username into it. Alternatively, you can keep using the AD object picker parameter and use a script instead of the Create an Active Directory object action. The script will get the username of the selected account and create the group. If latter is the preferred approach, please, post here or send us (support@adaxes.com) a full screenshot of the Create an Active Directory object action. Should there be other parameters used (except for PM03 and PM07), please, specify the parameter types.

Related questions

0 votes
1 answer

I have a custom command that prompts for a "reporter" for our ticketing system for enabling VPN accounts. Sometimes a technician will enable an account on behalf of another ... do I extract the email address of that object chosen as a parameter? Thank you.

asked Dec 10, 2019 by bjzielinski (70 points)
0 votes
1 answer

I am working on a script that sends an email (using Send-MailMessage) to one or more recipients, selected through an AD Object Picker parameter within a custom command. I have ... picker before running the code so I am confused as to why this is not working.

asked Mar 4, 2022 by ryan741 (120 points)
0 votes
1 answer

Hello The search function in the AD object picker seems to be limited to the attribute "Name". I have some AD groups where the name is not very meaningful for our ... these cases. Is there any way to include the "Description" attribute in the search? Pudong

asked Sep 26, 2021 by pudong (680 points)
0 votes
1 answer

Here is my issue, When I use this code: $DNs = %param-GroupsInRole% $Groups = $DNs -split "|" %Param-GroupsInRole% can have multiple groups. When setting up the parameter I am ... I just need to be able to do a foreach with the groups picked by the initiator.

asked Mar 23, 2023 by mightycabal (1.0k points)
0 votes
1 answer

Hi I've added values to two attributes of an Oraganization Unit: adm-CustomAttributeText1 adm-CustomAttributeText2 I'm trying to extract these properties with a powershell ... But this does not provide the value set in adm-CustomAttributeText1. Any ideas?

asked Jan 28, 2013 by kjesoo (960 points)
3,538 questions
3,229 answers
8,224 comments
547,748 users