cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
max81
Kudo Kingpin
Kudo Kingpin

Change permission as Admin via PowerAppsforAdmins - Connector

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.

 

0 REPLIES 0

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (59,711)