I am trying to get user details like their name, email, phone, about me, department and position.
I am getting only following as response and no expandable properties.
URL - "/rest/api/user?username=sample"
Response
{"type":"known","username":"sample","userKey":"2edfc034541014edfc2c9ba06b8","profilePicture":{"path":"/images/icons/profilepics/default.png","width":48,"height":48,"isDefault":true},"displayName":"Sample, User","_links":{"base":"https://confluence.com","context":"","self":"https://confluence.com/rest/experimental/user?key=2edfc034541014edfc2c9ba06b8"}}
PS - I have modified to JSON details above to hide personal details.