Hi
I'm trying send users in-app notifications in a model-driven app. According to the official article and various other articles it should be possible to set the Owner, so that the flow user can send notifications to other users.
I think I figured out that one needs to take the trigger header x-ms-user-id to search the Users table in the running environment by azureactivedirectoryobjectid to find the systemuserid, which I think is the id required to set the owner.
However, the column appears to be read-only to the user under which the flow is running, because I get this error:
Principal user (Id=99f3416a-477e-ee11-8179-6045bd127a55, type=8, roleCount=1, privilegeCount=95, accessMode='0 Read-Write', MetadataCachePrivilegesCount=7640, businessUnitId=7ba8170e-a07a-ee11-8179-6045bd10f744), is missing prvReadappnotification privilege (Id=e3805f77-79c9-40af-8aa8-8e85100cf74e) on OTC=10174 for entity 'appnotification' (LocalizedName='Notification') in Business Unit: sse-dev (Id=7ba8170e-a07a-ee11-8179-6045bd10f744). context.Caller=d998c752-447e-ee11-8179-6045bd127a55. Consider adding missed privilege to one of the principal (user/team) roles.
Given the prevalence of mentions that it should be possible to set the owner, it seems overly convoluted that in order to set the owner, one must 1.) update/create a security role to be able to edit the column and, 2.) perform a lookup to get the correct id for the given environment.
Can anyone enlighten me as to if I'm doing this right?

Report
All responses (
Answers (