Adding a Custom Attribute to AD for use in a hub transport email signature.


I have created a HTML sig for one of my customers and added it to the exchange as a transport rule and it works perfectly assing names, telephone numbers etc.

The only issue i have is that they want to further items adding which arent a normal section in ad.  I understand you can use CustomAttributes1-15 to do additional items.

I have gone through the process of adding a customattribute call CustomAttribute1 of which will contain their qualifications (such as LLP) but it is not appearing in my html sig.

Any ideas?

Who is Participating?
ChrisConnect With a Mentor Commented:
what happens when you do this

get-mailbox -identity "username" | fl  
for username put in someone who has the attribute set

this should return a lot info on the mailbox and if Excahgne can see the attribute properly you will see it in the list
how have you called the custom attribute

%%CustomAttribute1%% would be the right way of doing it

if you post up the transport rule and the HTML Sig to go with it that would help
timb551Author Commented:
Yes I have called it %%CustomAttribute1%%

Extract from rule

<html lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8"><style type="text/css">body,td,th,p{font-family: Tahoma, Geneva, sans-serif;font-size:11px;max-width:600px}a{color: inherit;}.d{font-size:10px;color:#999;}</style></head><body><p>Kind Regards,</p><br/><p><strong>%%displayName%%</strong> %%CustomAttribute1%%<br/>%%title%%</p><br/><table width="600" cellspacing="0" cellpadding="0"><tr><td style="border-right:solid 2px #797979;" width="200" rowspan="10">
Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!


can you trying running Get-  cmdlet to see if its able to read them properly

i.e. get-mailbox -RecipientFilter { CustomAttribute1 -eq "LLp"} and see if you get them coming back


Get-Mailbox -ResultSize Unlimited | Where-Object {$_.CustomAttribute1 -eq “LLC”}

i think both should work
timb551Author Commented:
Ran the first one and got

[PS] C:\Windows\system32>get-mailbox -RecipientFilter {CustomAttribute1 -eq "DOCTOR"}
A positional parameter cannot be found that accepts argument 'CustomAttribute1 -eq "DOCTOR"'.
    + CategoryInfo          : InvalidArgument: (:) [Get-Mailbox], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Get-Mailbox

Ran the second one and it just went to a new blank line
do you get >> 
or does it just hang on a blank line

I have just added something into custom attribute1 and searched with this

Get-Mailbox -ResultSize Unlimited | Where-Object {$_.CustomAttribute1 -eq "MSc"}

took 20-30s but came back with 1 result
timb551Author Commented:
It thinks about it for a while but then just goes to the next line.
timb551Author Commented:
CustomAttribute1                       :
CustomAttribute10                      :
CustomAttribute11                      :
CustomAttribute12                      :
CustomAttribute13                      :
CustomAttribute14                      :
CustomAttribute15                      :
CustomAttribute2                       :
CustomAttribute3                       :
CustomAttribute4                       :
CustomAttribute5                       :
CustomAttribute6                       :
CustomAttribute7                       :
CustomAttribute8                       :

Curious why it isnt propegated?
timb551Author Commented:
I have figured it out.

Sorry its OF (operator fault)

I was putting in the details incorrectly into AD.  Its called ExtensionAttribute1 not customattribute1
the name changed at somepoint, they were CustomAttributes and changed to extetntion

just to keep people on there toes
timb551Author Commented:
Ridiculous behavior from Microsoft :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.