Query User Profile Action On SharePoint Online And Office 365 Using Nintex Workflows

Welcome to an article on how to use the action "Office 365 Query User Profile" on SharePoint Online and Office 365, using Nintex Workflows. This article will display the action “Office 365 Query User Profile”. Here, we will see how to configure this action and use it for our work.

Using this action, you can query the properties of a user’s profile.

Let’s see the implementation of this functionality.

  • I have created a document library “Dev Document”. In Dev Document, click the Library tab on the top ribbon and click Nintex Workflows.

    Dev Document

  • You will see the following screen, to create a new Workflow.
  • Click “Create new workflow”.

    Create new workflow
  • You will come to the design phase of the Nintex Workflows.

    design

  • Add the action, “Office 365 Query User Profile” action by right clicking on the Workflow or by dragging and dropping from the left toolbox.

    toolbox
  • Now, let’s configure it.
  • When you double click on the action; the following screen opens up:

    screen
    screen

Configuration

  1. SharePoint Online URL: Provide the site URL.
  2. Username: Provide the site user name.
  3. Password: Specify the password.
  4. User’s email address: Provide the Email ID of the user you want to query the user profile from.
  5. Property: Provide the property you want to query of the user.
  6. Store Property: Here, you can add a variable to store the property as a result.
  • Now, we have configured our Workflow. Let’s go and publish it to use it.
  • Click Publish on the left corner of the ribbon of Nintex Designer.
    Publish
  • You will see the screen below.

    screen

  • Give your Workflow a name
  • Description
  • Choose your task list where it should store the tasks; it will be Workflow Tasks by default.
  • Choose your history list, where it should store the history logs; it will be Workflow history by default.
  • Start Options are given below:

    • You can either start your Workflow manually,
    • Or you can start your Workflow automatically, when an item is created. I will select this option to create automatically, when an item is created.
    • Or you can start your Workflow automatically when an item is modified.

  • Click Publish
  • Your Workflow will get published.

Once you configure, the Workflow will query the property configured by you, using the Email address of the user and fetch you the desired results.

Hence, in this article, we saw how to query the user profile properties, using the action Office 365 Query User Profile in SharePoint Online and Office 365, using Nintex Workflows. We will see more new articles on the actions of Nintex Workflows.