Any way to get the EXTGUID of an Extension?

Peti

Premier Customer
Joined
Jan 20, 2026
Messages
39
Reaction score
6
I would like to get the EXTGUIDs of our extensions, but couldn´t find a way to get them
 
Use this at your own risk - not recommended to tinker in these settings.

Go to Advanced > Parameters > Change "DEVELOPMENT_DNTABLE_EXPOSE" to 1.

This will expose DN Properties tab and you can get EXTGUID here.
 
Use this at your own risk - not recommended to tinker in these settings.

Go to Advanced > Parameters > Change "DEVELOPMENT_DNTABLE_EXPOSE" to 1.

This will expose DN Properties tab and you can get EXTGUID here.
Thanks, this helped a lot :)

Can an API read the values and output them into a file? That would really accelerate my job
 
you could extract the XML file from your ZIP backup and then do something clever to extract the data this way.
 
  • Like
Reactions: Peti
you could extract the XML file from your ZIP backup and then do something clever to extract the data this way.
Thanks, got everything I needed :)
 
Can an API read the values and output them into a file? That would really accelerate my job

3cx-xapi-get-user-extguid.ps1
Code:
$tcxurl="mypbx.mydomain.de"     # needs port if not 443

$jsonauthbody = (@{
    Username="100"              # 3CX user, maybe email address
    Password="Super_Secret0815" # 3CX user password
    SecurityCode=""
} | ConvertTo-Json)

$LoginResponse = Invoke-RestMethod -Uri "https://$tcxurl/webclient/api/Login/GetAccessToken" -Body $jsonauthbody -Method POST -ContentType "application/json"

if( $LoginResponse.Status -ne "AuthSuccess" ) {
    Write-Host "abort: authentication not successful"
    exit -1
}

$headers = @{Authorization = "Bearer $($LoginResponse.Token.access_token)"}

$usernrs = (Invoke-RestMethod -uri "https://$tcxurl/xapi/v1/Users" -headers $headers -Method GET -ContentType "application/json").Value.Number | Sort-Object
$usernrlen = $usernrs[0].Length
Foreach ($usernr in $usernrs) {
    $extguid = ((Invoke-RestMethod -uri "https://$tcxurl/xapi/v1/DNProperties/Pbx.GetPropertiesByDn(dnNumber='$usernr')?`$search=`"EXTGUID`"" -headers $headers -Method GET -ContentType "application/json").value).value
    Write-Host $("{0,$usernrlen} | {1}" -f $usernr, $extguid)
}
 
  • Like
Reactions: KyriacosS_3CX

Forum statistics

Threads
111,952
Messages
589,904
Members
164,845
Latest member
tdzski5