0 votes

We would like users to be able to add their mobile number and carrier information from within the web console.

Preferably, they would enter their mobile number in a text box, and select their carrier friendly name (Verizon, AT&T, T-Mobile, etc.) from a dropdown list.

Once entered, remove any special characters (parenthesis, spaces, hyphens, etc.), have the carrier friendly name be replaced by the email domain (@vtext.com, @txt.att.net, etc.) and would get concatenated to the number.

For example, if a user would enter "(800) 555-1212" in to a text box, and select "AT&T", the resulting address would be "8005551212@txt.att.net". This address would then be written to an extensionAttribute field in Active Directory.

by (4.8k points)
0

Please disregard this request. I was able to figure out how to do this on my own.

I accomplished this by using the adm-CustomAttributeText fields, and a Property Pattern to limit one of them to only the carrier names.

I then created a Business Rule to run a PowerShell Script if the CustomAttributes were changed (sorry I am not a coder so probably ugly)

Import-Module Adaxes

# Remove Parenthesis, Hyphens, and Spaces from Mobile Number
$Mobile = ($Context.TargetObject.Get("adm-CustomAttributeText2"))
$MobileMap =@{ "("=""; ")"=""; "-"="";" "=""; }
foreach ($MobileMapKey in $MobileMap.Keys) {$Mobile = $Mobile.Replace($MobileMapKey, $MobileMap[$MobileMapKey])}
$Context.SetModifiedPropertyValue(("adm-CustomAttributeText4"), $Mobile)

# Replace Carrier Name with Carrier Address
$Carrier = ($Context.TargetObject.Get("adm-CustomAttributeText3"))
$CarrierMap =@{ "AT&T"="@txt.att.net"; "Sprint"="@messaging.sprintpcs.com"; "T-Mobile"="@tmomail.net"; "Verizon - Personal"="@vtext.com"; "Virgin Mobile"="@vmobl.com"; "Mobi PCS"="@mobipcs.net"; }
foreach ($CarrierMapKey in $CarrierMap.Keys) {$Carrier = $Carrier.Replace($CarrierMapKey, $CarrierMap[$CarrierMapKey])}
$Context.SetModifiedPropertyValue(("adm-CustomAttributeText3"), $Carrier)

# Replace SMS Address
Set-ADMUser -Identity %username% -Replace @{extensionAttribute15 = $Mobile + $Carrier}

# Wait Timer to allow AD to update before page is refreshed
Start-Sleep -s 10

# Log Information
$Context.LogMessage(("SMS Address Updated") + ": " + $Mobile + $Carrier, "Information")

I then Customized the Display Names and Updated the Web Page to allow users to update their information.

Please log in or register to answer this question.

Related questions

0 votes
1 answer

I am evaluating Adaxes. I noticed that the web interface does not allow modification of the External Email Address (ms-Exch-Target-Address). What would someone do if they needed to change the Target Address?

asked Aug 6 by ComputerHabit (5.6k points)
0 votes
1 answer

Hi All, I was following the following documentation https://www.adaxes.com/tutorials_DelegatingPermissions_GrantRightsToModifyADGroupMembership.htm However I cannot work out how to make it ... can only add themselves. Any help would be great. Many Thanks

asked Mar 30 by antondubek (1.9k points)
0 votes
1 answer

Is it possible to only allow a user to unlock their account from the web interface? We have a group of Mac users who we'd like to be able to unlock their accounts through the web but use a different service for changing their passwords.

asked Jun 30 by scoutcor (850 points)
0 votes
1 answer

Hello, I'm evaluating the use of Adaxes at my organization, where on a weekly basis we have users changing positions, and require (among other things that Adaxes appears to be capable ... are destined to go to, and a date for this action to happen on? Thanks!

asked Dec 2, 2015 by jduketow (280 points)
0 votes
1 answer

I get this question quite a bit.... Our staff is used to being able to paste a well-formed listing of users into "Active Directory Users and Computers" when they are ... the web interface)? If not, are you considering adding this ability in the future? Thanks!

asked May 22, 2012 by BradG (6.6k points)
2,352 questions
2,107 answers
5,746 comments
131,504 users