'update role app users in Azure AD using Microsoft Graph API

I have different roles of an app called power.

enter image description here

Each user has a role assigned and I want to be able to change a role to a user with graph api using graph explorer and connect it to power apps.

enter image description here

enter image description here

With this request i have the id role of all users but I don't know how to update them

GET https://graph.microsoft.com/v1.0/{id}/users?$expand=appRoleAssignments

If there is another api or connector with which I can do it and connect it with powerapps, it also works for me.



Solution 1:[1]

Create a vector of all the dates you want, and see what's missing:

all_dates = seq(
  from = as.Date("2017-01-01"),
  to =  as.Date("2019-12-31"), 
  by = "day"
)

missing_dates = setdiff(all_dates, amt_789$date)

This assumes your date column is of class Date--if it isn't, you should convert it with as.Date().

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Gregor Thomas