API call syntax for getting list of usernames & phonenumbers

Hi,

Can anybody give me the correct syntax for an API call that will retrieve ALL usernames plus phonenumbers (if it exists)? I’ve tried what I regard as the “normal” syntax, which is also in line with the developer manual - but it does not return usernames, only phone numbers. Version 231

It’s almost like there’s a block on retrieving usernames via the web api (but not display_names, surnames, etc)

Best regards
Calle

Hi Calle,

Isn’t this query enough for that? Tested in 2.33

?paging=false&fields=id,userCredentials[username],phoneNumber

imagen

@barreda

Oh yeah, that worked - I had not thought of using that userCredentials[username] syntax.

Thanks!

Regards
calle

1 Like