Using CQL via REST API to retrieve information on unlicensed users

Currently a CQL query to retrieve users by user key doesn’t return any who are unlicensed (for Confluence) or who have been deactivated. In contrast looking each user up individually by /rest/api/user?key=userkey1 will return details about the user.

Is there anyway to adjust a CQL query to include unlicensed users? Or alternatively are there any better ways to query user details in bulk?
(rendering a table of N users should not require N web requests to show their details)

Query Example
type = user and user.userkey in ('userkey1', 'userkey2', 'userkey3')

Hi Tim,

Currently, it is not possible to perform a query with CQL for unlicensed users.