Get user's manager name and insert into a list column for SharePoint Online We can use SharePoint2013 designer workflow/MS Flow to achieve it and also we can use REST API to get user's manager details. <script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.min.js"></script> <script type="text/javascript"> GetCurrentUser(encodeURIComponent($.parseJSON($("[title='Owner'] input").val())[0].Key)); // function GetCurrentUser(loginName) { var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='Manager')?@v=" + "'" + loginName + "'"; var requestHeaders = { "accept" : "application/json;odata=verbose" }; $.ajax({ url : requestUri, method: "GET", async:false, headers : requestHeaders, success : onSuccess...
Your comprehensive resource for Microsoft 365 productivity solutions. Explore expert tutorials, best practices, and real-world implementations for SharePoint Online, Power Platform (Power Apps, Power Automate, Power BI), Microsoft Copilot and Python. Whether you're building automated workflows, creating custom apps, managing SharePoint sites, or leveraging AI with Copilot, find practical guides and insights to transform your digital workplace