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

Hello, We are using Adaxes to manage our Cloud Only infrastructure, and one of the problems we have run into is when creating a NEW user, we need to fill out some ... and then write the data meant for the Custom Attributes field when the mailbox is ready?

asked Jan 29 by AvenuesRecovery (70 points)
0 votes
1 answer

I'm wanting to store information in a custom user attribute in Entra ID but I'm wondering if this is possible within a "Update the user" action in Adaxes? ... PowerShell? https://learn.microsoft.com/en-us/entra/external-id/customers/concept-user-attributes

asked Dec 11, 2024 by smcfarland (60 points)
3,677 questions
3,361 answers
8,494 comments
549,314 users