Since it's supported by query API it should also be supported by REST API.
The workaround is to use ", doc.object(XWiki.XWikiUsers) obj" instead of "from doc.object(XWiki.XWikiUsers) obj".