0 votes

Hello,

I would like to create a form for Service Desk that contains specifics fields about information's not in any AD attributes?
I need then to use these data's into a PS scripts after the creation of an object.

Example : The form contains : Reference User : --> the Service Desk type the login name or better browses in AD to select the Reference User.
This value will be save into the custom variable %referenceuser% and useable in scripts.

It is possible to do it with Adaxes?

Thanks.

by (1.1k points)

1 Answer

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

Hello,

For this purpose, you can use custom attributes provided by Adaxes. They are not stored in AD, but can be used the same as any other attributes of AD objects. The following attributes are available for you to use:

  • CustomAttributeText1 through CustomAttributeText30 - for text (string) values,
  • CustomAttributeTextMultiValue1 through CustomAttributeTextMultiValue10 - for multivalued text (string) values,
  • CustomAttributeBoolean1 through CustomAttributeBoolean25 - for boolean values,
  • CustomAttributeInt1 through CustomAttributeInt5 - for integer values,
  • CustomAttributeBinary1 through CustomAttributeBinary5 - for binary values,
  • CustomAttributeDate1 through CustomAttributeDate5 - for date values,
  • CustomAttributeTimeStamp1 through CustomAttributeTimeStamp5 - for timestamp values.

You can provide your own name under which attributes appear in Adaxes, however in value references you need to use the LDAP names for the attributes. LDAP names do not change. All Adaxes custom attributes have the adm- prefix on their LDAP names. For example, to insert the value of the CustomAttributeText1 attribute, use the following value reference: %adm-CustomAttributeText1%.

For information on how to provide display names for attributes, see the following help article: http://www.adaxes.com/help/?HowDoI.Mana ... Names.html.

As for the possibility to pick a user, currently, there are no custom attributes that would allow you to do that, however for this purpose you can use any AD attribute supporting the DN syntax that you don't use for other purposes. For example, you can use such attributes as See Also, Manager, Secretary or Assistant.

0

Hello,

Thank you :-)

>>As for the possibility to pick a user, currently, there are no custom attributes that would allow you to do that, however for this purpose you can use any >>AD attribute supporting the DN syntax that you don't use for other purposes. For example, you can use such attributes as See Also, Manager, Secretary or >>Assistant.

I am new with Adaxes :-)
I do not see how I can pickup the reference user directly from the web interface and then use the CN of this user later in my script.

0

Hello,

For this purpose, you can use value references. A value reference for a property that supports the DN syntax will return you the Distinguished Name (DN) of the object selected on the form. Thus, for example, if you use the assistant attribute to specify a reference user, you can get the Distinguished Name of the selected user using the %assistant% value reference. Then, you can use the $Context.BindToObjectByDN() method to bind to the user and get the properties you need, for example:

try
{
    $referenceUser = $Context.BindToObjectByDN("%assistant%")
}
catch
{
    # An error occurred
    $Context.LogMessage($_.Exception.Message, "Warning")
    return
}

# Output reference user name
$referenceUserName = $referenceUser.Get("cn")
$Context.LogMessage($referenceUserName, "Information")
0

Hello, this is fine. Thank you.

Related questions

0 votes
1 answer

When we run a computer cleanup task in AD, and set the description field to ex. "Computer deactivated by Adaxes %datetime%" - the date and time that is noted is the ... the actual disabling of the account in AD, instead of the time of the approval request?

asked Jul 4, 2018 by pafa (500 points)
0 votes
1 answer

We have internal AD that syncs to o365 via Azure AD Connect. It is not a hybrid environment; there is no Exchange on site. I am trying to find the best way to use Adaxes to ... so I am not sure the best way to handle that. Thanks for any help you can provide.

asked Apr 15, 2020 by Jasonmh (540 points)
0 votes
1 answer

I have a business rule to create a user in our AD, and then have it create a new O365 account and assign it a license. How can I have it create a temporary password that I specify during that business rule?

asked Jun 17, 2020 by keecit (40 points)
0 votes
0 answers

Hello, We had this happen today, and it is the first time we have noticed this. We created a user using the HelpDesk web interface (our usual procedure), and the user ... seen before, and what we could do to try and troubleshoot if this happens again. Thanks.

asked Nov 8, 2018 by Jasonmh (540 points)
0 votes
1 answer

I would like to have the possibility to use different icons for AD groups. I have groups for file permissions, applications, mailboxes, etc. For each group type I ... do this without schema extension? or will this be possible in the future? regards pudong

asked May 6 by pudong (410 points)
2,733 questions
2,469 answers
6,460 comments
1,336,314 users