rework identity API to use new MQ API