Lets say I am building an application which allows users to submit code reviews. Some users are allowed to review the submitted reviews. Others are allowed to delete them for various reasons, etc.
Can the Google Directory API be used to assign such privileges to users that have logged into my application using Google Sign In/OpenID Connect?
The key here is that the privileges are not used for doing Google specific stuff, but for actions in my own application domain.
If not, is there any other Google API available that allows me to assign role based access/user privileges to any Google user?
On a side note: I am using Google Apps For Work and would like to have such a privilege system for all employees.