How to get roles email address in AppMaker

倾然丶 夕夏残阳落幕 提交于 2019-12-25 02:18:42

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!