Hello,
I just implemented to bring two data details that the active directory osticket plugin does not bring me, and it's the office and the department.
through an api json. edit the file user.tmpl.php and add these lines ..
http://prntscr.com/n70zr9
?php
$url = 'http://misite.com/aad/api/userbasic/';
$respuesta_del_servicio = file_get_contents($url);
$objecto_completo = json_decode($respuesta_del_servicio, true);
// var_dump($result);
$datos_de_la_persona = $objecto_completo["data"];
$array_auxiliar = json_encode($datos_de_la_persona, true);
$array_de_datos_decodificados = json_decode($array_auxiliar,true);
echo "<b>Nombre</b>: ", $array_de_datos_decodificados["Fullname"];
echo "<br>";
echo "<br>";
echo "<b>Departamento</b>: ", $array_de_datos_decodificados["Department"];
echo "<br>";
echo "<br>";
echo "<b>Oficina: </b>", $array_de_datos_decodificados["Office"];
echo "<br>";
?>
what I can not do or find is that the user is detected ..
for example in $ url = 'http: //mysite.com/aad/api/userbasic/;
at the end of the / would have to add something like <? php echo $ user-> getUser (); ?>