Hi,
I want to change via button the permission. To make it ease, I want to change it to "CanEdit". My code runs without error, but without changing the permission.
Can anybody help?
PowerAppsforAdmins.EditAdminAppRoleAssignment(
EnviromentID, AppID,
{
'$filter': "enviornment eq '"& EnviromentID&"'",
put: Table({
properties: {
roleName: "CanEdit",
capabilities: [""],
NotifyShareTargetOption: "",
principal: {
email: UserEmail,
id: UserID,
type: "User",
tenantId: "null"
}
}
})
}
);
Adding someone or deleting someone is working fine.
User | Count |
---|---|
200 | |
102 | |
89 | |
45 | |
43 |
User | Count |
---|---|
247 | |
105 | |
103 | |
65 | |
60 |