0 votes

Hi

I'm wondering how we can use the custom attributes we can set when creating a new container in Adaxes? As an example, I would like to use one for the certificate thumbprint used to access Azure in powershell. This cert will of course need to be updated from time to time and I would prefer to store this in a custom atttibute and reference this within scripts rather than having to update every script we create.

Is this possible? And if so, how would we go about updating the attribute once the certificate has been renewed?

Thanks

Matt

by (5.2k points)

1 Answer

0 votes
by (199k points)

Hello Matt,

Adaxes custom attributes (e.g. CustomAttributeText1) are available for all types of objects including containers. You can update them the same way as you do for users, computers, groups, etc. For example, you can create a dedicated Modify container Web interface action with only the required custom attribute on the form. For details on how to work with Web interface actions, have a look at the following tutorial: https://www.adaxes.com/tutorials_WebInterfaceCustomization_ConfigureActionsPane.htm.

0

Hi

Thanks for the info. I'm not sure I was clear in my original question though, the containers I'm referrring to are the new containers under the Custom Commands. When I create these I have an option to speficy a custom attribute. AdaxesContainer.png While looking at the properties later I don't see a way to update this attribute. I'm also not sure how to reference this attribute from powershell.

Thanks

+1

Hello Matt,

Thank you for clarifying. To update properties of a container created in one of the containers for Adaxes configuration objects (e.g. in the Custom Commands container) you can use a custom command configured for the Container object type. Property values can be specified using the command parameters. For example, such a custom command can look like the following: image.png To execute a command, right-click the container, navigate to All Tasks and then click the command you need. image.png Values of such container properties can only be viewed using a PowerShell script. For example, it can be done by outputting values into the execution log via a script like below. In the script, the $propertyName varialbe specifies the LDAP name of the property.

$propertyName = "adm-CustomAttributeText1" # TODO: modify me

try
{
    $propertyValue = $Context.TargetObject.Get($propertyName)
}
catch
{
    $propertyValue = "Property $propertyName is empty"
}

$Context.LogMessage($propertyValue, "Information")
0

Thanks very much for the information and (as ever) the quick responses.

Matt

Related questions

0 votes
1 answer

I am trying to do a bulk update of a few custom properties that I added. I read this article Custom Properties in Search & PowerShell?. But I am not able to retrieve ... able to get other AD properties using the Get, e.g, user.Get("samAccountName") works

asked Jun 20, 2013 by sdavidson (5.1k points)
0 votes
1 answer

Hi, I'm trying to get an email sent to a users *new* manager after the field has been changed -see screenshot:- Is this the correct sequence, as the email is still ... job that triggers *before* the change to email the old manager, and that is fine. Rgds

asked Jun 19, 2013 by firegoblin (11k points)
0 votes
1 answer

Hi We've currently have 2 instances of Adaxes running in our environment. The first is a legacy standalone system and the new is a HA environment. We needed to get some things ... system so that it can be wiped and rebuilt. Is tihs possible at all? Thanks Matt

asked Nov 12, 2020 by chappers77 (5.2k points)
0 votes
1 answer

Is there a way to edit the names of custom fields in forms? For example, I want to create a new field but my only option is use the name Extension Attribute 12. ... rename them within Adaxes so our help desk staff don't get confused when creating profiles.

asked Nov 20, 2018 by john.morrow (1.2k points)
0 votes
1 answer

I'm making use of a TextMultiValue property, but I'm frequently getting 2 errors when I execute $Context.TargetObject.GetEx("Adm-CustomAttributeMultiValue2"). These actions are taking ... times also, can I get any insight on what would cause that? Thanks!

asked Jul 16, 2018 by jake_h (1.4k points)
2,467 questions
2,215 answers
5,950 comments
337,358 users