Obtain UIT but not from an add in button

Hi all

I have a power automate flow triggered by a sharepoint document being modified, as part of the flow I want to obtain the User identity token (uit) does anyone know how to do this? I suspect I need to use the Sky add in- send HTTP request.

Any help would be appreciated

Comments

  • @Ashley Gelderblom
    I do not believe you can get UIT directly from PowerAutomate.

    UIT is obtained through the JavaScript object that is defined in the Blackbaud JS library. You cannot use a JS library on Power Automate.

    @Glen Hutson can probably explains this better.


    // BBSkyAddinClient is global here.
    var client = new BBSkyAddinClient.AddinClient({
    callbacks: {
    init: async function (args) {
    await client.getUserIdentityToken().then((token) => {
    userIdentityToken = token;
    });

  • @Ashley Gelderblom
    Also, why do you need UIT? I'm assume you trying to use the validate user token action, but for what purpose?

  • @Alex Wong I have power automate inspecting a file modification in the tennant area- if it is modified- then use the csv file to create acknowledgement letters with PA- using some data from the csv (gift added by, installment frequency, next transaction date- all not available from endpoints) and some data from the gift end point

  • @Alex Wong
    I may not need the uit, but just thought it good practise

  • @Ashley Gelderblom
    What you describe you trying to do does not require the UIT.

  • @Ashley Gelderblom
    UIT for validating user is only needed when the trigger can potenially triggered by unknown user. (i.e. HTTP trigger)

    this flow of your does not need it as it is trigger by sharepoint file modified, which itself can only be done by authorized user in your tenancy

Categories