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 (2.0k points)

1 Answer

0 votes
by (288k 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

Hi I know this isn't currently possible, but is the ability to use Adaxes custom attributes in a Business Unit Criteria something you are looking into? It would make the business units far more powerful and usable than they currently are. Thanks Matt

asked Nov 30, 2022 by chappers77 (2.0k points)
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 (730 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 (1.6k points)
0 votes
1 answer

Im trying to rename "Extension attribute 1 and 2" to something legible for users. Is there a way to cahnge the dsiaply name myslef like how other attributes are done?

asked Feb 17, 2023 by raul.ramirez (210 points)
0 votes
1 answer

Hi, I am looking to build a report whereby all users within a specific OU (Disabled and forwarding). The report will return users who have been inactive for 90 days along with ... do this. Could someone give me the script to be able to do this please? Thanks!

asked Dec 20, 2022 by gareth.aylward (180 points)
3,538 questions
3,229 answers
8,224 comments
547,747 users