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.
Solved! Go to Solution.
UPDATE:
I fixed it! The Problem was the empty string in the notification part. I have to replace it with a blank().
PowerAppsforAdmins.EditAdminAppRoleAssignment(
EnviromentID, AppID,
{
'$filter': "enviornment eq '"& EnviromentID&"'",
put: Table({
properties: {
roleName: "CanEdit",
capabilities: [""],
NotifyShareTargetOption: Blank(),
principal: {
email: UserEmail,
id: UserID,
type: "User",
tenantId: "null"
}
}
})
}
);
Did you get this to work? I am trying to do the same thing.
UPDATE:
I fixed it! The Problem was the empty string in the notification part. I have to replace it with a blank().
PowerAppsforAdmins.EditAdminAppRoleAssignment(
EnviromentID, AppID,
{
'$filter': "enviornment eq '"& EnviromentID&"'",
put: Table({
properties: {
roleName: "CanEdit",
capabilities: [""],
NotifyShareTargetOption: Blank(),
principal: {
email: UserEmail,
id: UserID,
type: "User",
tenantId: "null"
}
}
})
}
);
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
182 | |
52 | |
41 | |
40 | |
34 |
User | Count |
---|---|
247 | |
80 | |
71 | |
66 | |
66 |