For a new app, I want to show only users with a profile picture. The endpoint /wiki/rest/api/search?cql=type=user returns objects in the following format:
{"user":{
"type":"known",
"accountId":"<id>",
"accountType":"",
"publicName":"Automation for Jira",
"profilePicture": {
"path":"/wiki/aa-avatar/<id>",
"width":48,
"height":48,
"isDefault":false
},
"displayName":"Automation for Jira",
"isExternalCollaborator":false,
"_expandable":
{"operations":"","personalSpace":""},
"_links":{
"self":"https://<domain>/wiki/rest/api/user?accountId=<id>"}},
"title":"Automation for Jira",
"excerpt":"",
"url":"/people/<id>",
"breadcrumbs":[],
"entityType":"user",
"iconCssClass":"aui-iconfont-user",
"lastModified":"2021-08-19T11:53:53.686Z",
"score":0.0
}
}
There is already I property profilePicture.isDefault. Sadly, this property is always set to false even if the image is just an acronym of the full name.
Are there any other ways to check if users have a self selected image?