Feature summary (what you would like to be able to do and where): Currently, the query as referred to in the title only returns non-implicit groups that a user has on a project, but there should be a way (configuration?) where the implicit groups the user has can also be returned.
Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution): This is used for supporting my Discord authentication bot, which may grant different roles depending on which user groups an account has. The bot is used across different projects, so it will query information about users through globaluserinfo. There are servers that need roles to be granted if someone is autoconfirmed, which cannot be easily checked through the data from globaluserinfo.
Benefits (why should this be implemented?): Helps tools retrieve data globally about a user where needed. The information about groups was added in T181905 but it looks like implicit groups wasn't considered.