Identity service

I have an Identity service with Active Directory configured in Foundry working. In Iris, how do I retrieve the data that AD responds? Below is the response from the AD service:

{
"profile": {
"userid": "Rubens.Marcelo",
"firstname": "####.####",
"user_attributes": {
"groups": [
"CN=####,OU=####,DC=####,DC=####,DC=####",
"CN=####,OU=####,DC=####,DC=####,DC=####",
"CN=####,OU=####,DC=####,DC=####,DC=####"
],
"userid": ####.####
"displayName": "####.####"
},
"profile_attributes": {
"firstname": "####.####",
"groups": [
"CN=####,OU=####,DC=####,DC=####,DC=####",
"CN=####,OU=####,DC=####,DC=####,DC=####",
"CN=####,OU=####,DC=####,DC=####,DC=####"
],
"userid": "####.####"
}
},
"profiles": {
"TibLdap": {
"userid": "####.####",
"firstname": "####.####": {
"groups": [
"CN=####,OU=####,DC=####,DC=####,DC=####",
"CN=####,OU=####,DC=####,DC=####,DC=####",
"CN=####,OU=####,DC=####,DC=####,DC=####"
],
"userid": "####.####",
"displayName": "####.####"
},
"profile_attributes": {
"firstname": "####.####",
"groups": [
"CN=####,OU=####,DC=####,DC=####,DC=####",
"CN=####,OU=####,DC=####,DC=####,DC=####",
"CN=####,OU=####,DC=####,DC=####,DC=####"
],
"userid": "####.####"
}
}
},
"claims_token": {
"value": "***",
"exp": 1736345400000,
"integrity_check_required": false,
"is_mfa_enabled": false,
"mfa_meta": null,
"session_id": "####.####"
},
"provider_token": {
"provider": "TibLdap",
"params": {
"principal": "####.####",
"provider": "konyads",
"phone": "",
"display_name": "####.####"
},
"value": ""
},
"provider_tokens": {
"TibLdap": ""
},
"refresh_token": "***"

I found the solution to this problem. Despite the lack of documentation, I found the voltmx.sdk.getCurrentInstance() method.

Here is an excerpt from the implemented code:

function getSession(self){
function GET_USER_PROFILE_b81ffcf801724b2282ee4cd2871ae0f1_Success(response) {
var grupos = response.groups;
let i = 0;
while (i < grupos.length) {
alert(grupos[i]); // Exibe cada elemento
i++;
}

}

function GET_USER_PROFILE_b81ffcf801724b2282ee4cd2871ae0f1_Failure(error) {}

var identitySvc = voltmx.sdk.getCurrentInstance().getIdentityService("ADTiberio");

identitySvc.getUserAttributes(GET_USER_PROFILE_b81ffcf801724b2282ee4cd2871ae0f1_Success, GET_USER_PROFILE_b81ffcf801724b2282ee4cd2871ae0f1_Failure);
}