How do I find the security role assigned to a user in CloudKit js

Not sure if this is the right place to post this... but here goes anyway.


I'm using CloudKit JS - version 2 - so the version announced at WWDC 2016.


I have a html / CloudKit JS implementation.

In the Development environment I've got a user (mine) that is the only user allowed to read the contents of a table.

I'd like to know from the signed in user which role they have been given and based on that display an admin menu.


So... for an authenticated user, how do I find what their security role assignment is?


- David