问题
How to get the email address from user roles in AppMaker? I understand that app.user.role
return a boolean whether the email address was assigned to that role or not. But how do we get the role email address then?
回答1:
Server API has app.getRoleMemebers() which is what you want:
var role = app.roles.Admins;
var members = app.getRoleMembers(role);
来源:https://stackoverflow.com/questions/52034362/how-to-get-roles-email-address-in-appmaker