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

Hi When reading the REST API documentation it does not mention working directly against Azure AD and Exchange Online. Will this be added? Thanks /Peter Sonander

asked Jan 26, 2023 by Sonander (40 points)
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

How can I create a script that does these things For internal audit. objective Even removing all groups of a disconnected user, we will still know which groups the ... in the created group (audit)-sAMAccountName-access add the (user)-sAMAccountName in members

asked Jul 2, 2022 by alancardoso (40 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 (60 points)
3,589 questions
3,278 answers
8,303 comments
548,148 users