Skip to main content

Get User Profile data in SharePoint Designer 2013 Workflow



SharePoint Designer 2010 supported out of box activity to access user profile fields. However, User Profile service option is not present in SharePoint 2013 Designer workflows.

In SharePoint 2013 workflow type ,we do not have any Lookup Manager for User activity. For this, SharePoint 2013 workflow you will need to use the Call HTTP Web Service activity, with the following end point URL.




Follow the below steps to get manager:


Step 1 : Activate site level feature - Workflows can use app permissions.

1. Go to Site Settings and click Manage site features under Site Actions.
2. Activate feature Workflows can use app permissions.





Step 2 : App Permission – To ensure that workflow can access user profiles.
1. Go to Site Settings and click Site app permissions under Users and Permissions.
2. Make a note of the App ID for your Workflow – portion of the Workflow App Identifier between | and @.






3.With the tenant/Farm admin account, go to <site-url> /_layouts/15/appinv.aspx.
At the appinv.aspx page, fill in the Application ID and click the search button next to the ID box















































4. Copy below xml to App’s Permission Request XML box,
<AppPermissionRequests> 
   <AppPermissionRequest Scope="http://sharepoint/social/tenant" Right="Manage" /> 

</AppPermissionRequests> 

5. Click Create. 6. Click Trust It, when prompted. 

















Step 3 : Create a Workflow to get user profiles data.
1. Open the site in SharePoint designer and create workflow on designed list or document library.
2. Add app step and Set up a workflow variable emailid  that stores the target user’s login name.









3.We will encode the variable as below.







4.Build dictionary to set up the RequestHeaders









5. Set the values as below to dictionary.



Accept
application/json;odata=verbose
Content-Type
application/json;odata=verbose

6. We will use the REST API to get UserProfile Properties.

7. Set workflow variable servicecall to RESTAPI.





















1 
                 8. Call Http Web Service to invoke the REST API

9







              
9.The workflow variable Manager should get populated with the Title


















10.   Updated one of the list filed with Title.



















Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. Knowledgeable information
    I would like to thank you for the efforts
    you have made in writing this interesting and
    knowledgeable article.
    There is more relative topics below :
    Independence Day

    ReplyDelete
  3. Pretty article! I found some useful information in your blog, it was awesome to read,thanks for sharing this great content to my vision.
    I appreciate your work.please keep sharing more updates.


    search engine optimization in Pakistan

    ReplyDelete
  4. The blog you have shared is incredibly helpful.
    Thanks for sharing this blog!


    stair cleaning,  in Sweden

    ReplyDelete
  5. Amazing Blog Content. Very informative blog for many users. Thanks for sharing your valuable information! keep it up.


    digital marketing services in Pakistan

    ReplyDelete
  6. I found some useful information in your blog, it le! was awesome to read,thanks for sharing this great content to my vision.
    I appreciate your work.please keep sharing more updates
    online fragrance shop

    ReplyDelete
  7. The blog is really very well and keep nice collection of data. You are doing a great job, good luck for the upcoming blogs.Amazing Blog Content. Very informative blog for many users.
    online recruitment website

    ReplyDelete
  8. A marvelous blog and a good piece of writing.
    This blog entails all the highlights you need to
    know to get what you want. Are you interested
    in buying more about other related products?
    We do have a similar set of products that might
    pique your interest.
    Check them out here.
    Heavy Truck Repair Shops

    ReplyDelete
  9. The blog is really very well and keep nice collection of data. You are doing a great job, good luck for the upcoming blogs.A marvelous blog and a good piece of writing.
    This blog entails all the highlights you need to
    know to get what you want.litigation legal analyst

    ReplyDelete

Post a Comment

Popular posts from this blog

Tab Control in Asp.Net

Scenerio: I need your help in designing tab control in   asp.net .My requirement is I need a tab control in   asp.net (C#) like  for example goto my computer ,right click c drive and select properties.we get tabs like general,security etc....... like that i need to design one tab control(no need of any rightclick) in my web page and the database table columns should come as tabs and inseide the tab data of that particular column should come.   Example:Employee master tab1:Employee name.........his name in the tab tab2:Age.............his age tab3:Address........his address   Solution:   You can do this using a simple div <style type="text/css"> .tabs         {             position: relative;             height: 20px;             margin: 0;   ...

AI and Microsoft: Revolutionizing Efficiency in Nonprofit Organizations

  How AI and Microsoft Enhance Efficiency in Nonprofit Organizations In today’s fast-paced world, nonprofit organizations face unique challenges—limited resources, increasing demands, and the constant need to do more with less. But what if technology could be the game-changer they need? In my latest research paper,  "How AI and Microsoft Enhance Efficiency in Nonprofit Organizations" , I explore how cutting-edge technologies like Artificial Intelligence (AI) and Microsoft’s innovative tools are revolutionizing the way nonprofits operate. From streamlining administrative tasks to enhancing donor engagement and optimizing resource allocation, AI and Microsoft’s solutions are empowering nonprofits to focus on what truly matters—their mission. This paper dives deep into real-world examples, practical applications, and the transformative potential of these technologies. Whether you’re a nonprofit professional, a tech enthusiast, or simply curious about the intersection of technolo...

Social tagging overview in Sharepoint 2010

A tag is a word or phrase that identifies an individual piece of information according to a set of attributes or criteria. Tags make it easy to find and share information about a specific subject or task. Social tagging helps users categorize information in ways that are meaningful to them. Social tagging can improve the quality of search results by filtering against specific tags, and it can also connect individuals who want to share information with other users who have like interests. This article describes the social tagging features in Microsoft SharePoint Server 2010. This article does not describe how to configure social tagging features. It also does not discuss how to implement social tagging features as part of an overall social media strategy for an enterprise. About using social tagging features Social tagging features help users to share information and to retrieve relevant, high-quality content more efficiently. Such sharing encourages collaboration and b...