Get Current User Login Name Using REST API. You don't have permissions to execute this process or to access this ressource."}}}" Building and sending an HTTP request may vary according to language, library, and add-in type, so you often need to change one or more request components when you're translating a request from one environment to another. Accept: application/xml. This article introduced you to SharePoint API and also showed you how to implement SharePoint REST API endpoints to perform basic operations. ?Seems not to work for me. For example, jQuery AJAX requests use data and type parameters to specify the request body and type, but cross-domain library requests use body and method parameters to specify those values. For more information about using the cross-domain library, see Access SharePoint data from add-ins using the cross-domain library. Open your SharePoint site and go to the web part page and then Edit the web part page -> Add Web parts. Hi vardhamanis there any way to get all user profile properties for multiple users using Rest api. SharePoints most useful feature is collaboration and sharing, helping you to stay organized by creating workflows and automating tasks. {"d": {"__metadata":"id "},"AccountName":"", }. If you continue to use this site we will assume that you are happy with it. Cloud-hosted add-in components that are written in JavaScript must use the SP.RequestExecutor object in the cross-domain library to access to SharePoint data. Browse other questions tagged, Start here for a quick overview of the site, Detailed answers to any questions you might have, Discuss the workings and policies of this site. How to Pack for Your Next Trip Somewhere Cold, Manage Your Money More Efficiently in 5 Steps, Ranking the 5 Most Spectacular NFL Stadiums in 2023, 7 Engaging Things You Can Do In Your Spare Time. Can non-Muslims ride the Haramain high-speed train in Saudi Arabia? using (SPWeb oweb = osite.OpenWeb()) Hevo Dataoffers strong integration with 100+ Sources & BI tools such as SaaS applications, REST APIs, Databases, Files, etc. Hi Vipin, you will have to use SharePoint People search for that. So after getting the user id from your list you need to make another Ajax call to get the user login name/display name by using /_api/Web/GetUserById method . The example URIs in Table 1 use the @target alias to send the target URL in the query string because the URL contains a special character (':'). If you have ability to modify (master) page (i.e. SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. i tried it and this is the error: responseText "Common Language Runtime detected an invalid program.\",\"type\":\"System.InvalidProgramException\",\"stacktrace\":\" at Microsoft.Office.Server.UserProfiles.PeopleManager.GetMyProperties()\\r\\n at Microsoft.Office.Server.UserProfiles.PeopleManagerServerStub.InvokeMethod(Object target, String methodName. To start with SharePoint REST API, you need to create an HTTP request to build endpoints. Hevo Datais a No-code Data Pipeline that offers a fully managed solution to set up data integration from Sharepoint100+ Data Sources(including 30+ Free Data Sources) and will let you directly load data to a Data Warehouse or the destination of your choice. You never load any objects and never executes the query so there is no wonder you get an error. Do something like: var clientContext = SP.ClientCo http:///_api/web/getfilebyserverrelativeurl('//')/author. So, user_name would be something like this: "username". But you will have to be dependent on search crawls then. SharePoint Online REST API Authentication In POSTMAN: https://sharepoint.stackexchange.com/questions/236286/sharepoint-online-rest-api-authentication-in-postman. For example, _spPageContextInfo. function GetCurrentUsername() Can I use REST API in Office 365 to create users and groups on sharepoint office 365? SharePoint is not installed on your computer locally but is rather connected from a browser, and is primarily used as a Document Management and Storage System. Microsoft 365 | Microsoft Azure | .NET | JavaScript. Endpoint URIs use the following format: /_api// (example, https://contoso.com/_api/web/lists). Specifies whether the response is a binary string. Use the DELETE method to delete the entity. For this approach we need the ID of the current logged in user. Hi Vardhaman.I'm trying to put the user Picture in a image tag. had query on the same. This particular value applies only to lists and list items, and is intended to help you avoid concurrency problems when you update those entities. Working with REST API is quite simple and straightforward, for example when you need to fetch data from a list you can use the following jQuery AJAX code snippet: Another good example is when you need to get specific fields like Title, ID or Modified , you can use the $select keyword. You must obtain the access token from code that is running on a server. Retrieve user This EndPoint URL provides all the information about the Current logged in user. ExecuteOrDelayUntilScriptLoaded (getDisplayName,"sp.js"); var currentUser; function getDisplayName () { this.clientContext = new SP.ClientContext.get_current (); Was Galileo expecting to see so many stars? (translated from german)How do I get the Workflow working? Theme: Envo Blog. It's because domain and login must be added like that: url: _spPageContextInfo.webAbsoluteUrl + "/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)? How to get the loginName of current user? Any help appreciated. If you are working on SharePoint Online, then they have introduced a new variable to hold the current user's login name in the _spPageContextInfo global object. This will get you the login name without making any AJAX calls with JSOM or REST. Cloud-hosted add-ins use either OAuth or the cross-domain library to authorize access to SharePoint data. this.currentUser = website. The URL is constructed with the use of CurrentUser as the EndPoint, which returns the User ID, Login Name, Title, etc. To Get User Display Name: How to display logged in user in SharePoint Designer? One advantage of using REST is that you don't have to add references to any SharePoint libraries or client assemblies. TechNet Community Support
This web browser either does not support JavaScript or scripts are being blocked. SharePoint 2010 REST API get current login user name. If you're using the JavaScript cross-domain library, SP.RequestExecutor handles getting and sending the form digest value for you. The downside of this being that you are bringing back all 101 properties which would increase the data travelling over the wire.If the GetUserProfilePropertiesFor was implemented in the REST API, we would be able to get back only the properties we want and that would not consume unnecessary bandwidth. How to get the CURRENT USER ID in SharePoint? I'm always getting an access denied error. It is a type of software interface that acts as a mediator among other pieces of software to streamline the interaction with one other. You do not have permission to perform this action or access this resource."}}}" Subscribe to SPGeeks to be notified about the new articles, updates and more. Below is the jsom code, to get current user id in sharepoint using javascript. If you are working on SharePoint Online, then they have introduced a new variable to hold the current users login name in the _spPageContextInfo global object. The EndPoint URL for this can be constructed with SiteUserInfoList/items(Curent User ID) as the EndPoint. To get the results in JSON format, include an Accept header set to "application/json;odata=verbose". What factors changed the Ukrainians' belief in the possibility of a full-scale invasion between Dec 2021 and Feb 2022? Solution For 6) Get Multiple UserProfile Properties for Specific User- As per microsoft (https://msdn.microsoft.com/en-us/library/office/dn790354.aspx#bk_PeopleManagerGetUserProfilePropertyFor): The GetUserProfilePropertiesFor method is not implemented in the REST API. If you're creating a SharePoint-hosted SharePoint Add-in, you don't have to make a separate HTTP request to retrieve the form digest value. In the Workflow I get an error saying: "{"odata.error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"de-DE","value":"Access denied. It also assumes that you have a valid OAuth access token that is stored in the accessToken variable. The following example shows how to create a site in JavaScript. forum to share, explore and talk to experts about Microsoft Teams. I could get particular property of user using GetUserProfilePropertyFor.Below is my REST query,http://siteurl/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='Manager')? You can make the HTTP requests in any language, including but not limited to JavaScript and C#. Note that you cannot obtain an access token from code that is running on a browser client. yes i test it all using rest client for mozilla : and i alyaws having error : at Microsoft.Office.Server.UserProfiles.PeopleManager.GetMyProperties() at Microsoft.Office.Server.UserProfiles.PeopleManagerServerStub.InvokeMethod(Object target, String methodName, ClientValueCollection xmlargs, ProxyContext proxyContext, Boolean& isVoid) at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String yes mick , it return an error in IE , I use IE11. Hi kaviya,You will have to use people search for that. Working with REST API is quite simple and straightforward, for example when you need to fetch data from a list you can use the following rev2023.3.1.43269. This worked fine though: For REST api, you could use 'GetMyProperties'. Visit Microsoft Q&A to post new questions. This article discusses SharePoint API, REST API to be specific, that you can leverage for you and your team to work well together. You want to change using code or manually? Example: Remote add-ins that use OAuth can get the form digest value from the, Specifies the format for response data from the server. In the top right corner, click Settings , or in top left, click Site Actions . Youll also learn how to work around SharePoint REST API HTTP commands for added functionality. The response headers of the resulting HTTP response pass the etag as the value of the ETag key. thank you all , i tried :/_api/Web/SiteUserInfoList/Items(Id)?$select=Name,Picture in the navigator and it works fine , but whenuse the ajax function i got this error : SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied. You can insert the HTML and/or JavaScript code into the dialog. I had to do a TEXT replace in some instances - for the URL with "#" :i:0#.f|membership|vardhaman@tsunami684.onmicrosoft.comi:0%23.f|membership|vardhaman@tsunami684.onmicrosoft.comThat was a gotcha for me. I thing it is working with SharePoint 2013. _spPageContextInfo is a global variable. Accept: application/xml. SharePoint 2016: Get Current User Using JavaScript. Example: Specifies whether the request body is a binary string. All Rights Reserved. How to change display name in sharepoint 2013? Planned Maintenance scheduled March 2nd, 2023 at 01:00 AM UTC (March 1st, Get the ID of the current user using REST API, SharePoint Search Query - Filter item by user & groups from the current user. If you have feedback for TechNet Subscriber Support, contact
The best answers are voted up and rise to the top, Not the answer you're looking for? So far, that functionality is not exposed via the user profile service (for REST API and CSOM). Do you use SharePoint? Setting properties is optional in the SharePoint REST API HTTP MERGE method, and if any property is not set explicitly, it keeps its current property. For more information about how you can obtain an access token, see Context Token OAuth flow for SharePoint Add-ins and Authorization Code OAuth flow for SharePoint Add-ins. userLoginName gives the login name of the current logged in user. In this sample, Ill use the REST API endpoint /_api/web/CurrentUser to get Current SharePoint User: You may be also interested to read SharePoint 2016: JSOM is only working in Edit Mode. For you situation, Nhdy Sw is display name. When to use REST request properties in HTTP requests. Hi,For me option with domain\account doesn't work("For SharePoint 2013 On-Premise: http://siteurl/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v=domain\username"). well, things are not as obvious as they seem. For an example that adds an authorization header to an HTTPWebRequest object, see Reading data with the SharePoint REST interface. as in example? Youll be auto redirected in 1 second. As you already know, SharePoint has been one of the best collaborative platforms for organizations in recent times. ,\"type\":\"Microsoft.SharePoint.Client.InvalidClientQueryException\",\"stacktrace\":\". Locate a group that the user is in e.g. ), Simplify SharePoint ETL and Data Integration using Hevos No-code Data Pipeline, Understanding SharePoint REST API Commands, 10 Best REST Clients for API Testing for 2023, Asana vs Slack: 7 Critical Differences [2023 Review], Quickbooks vs Microsoft Dynamics: 5 Critical Differences [2023 Review], Retrieve a particular SharePoint Site or Web, Retrieve all the Items from a SharePoint List, https:///{site url}/_api/web/lists/getbytitle(listname)/items, https:///{site url}/_api/web/lists/getbytitle(listname)?select=Title, Retrieve all the columns of a SharePoint List, https:///{site url}/_api/web/lists/getbytitle(listname)/Fields, Retrieve a SharePoint List by using List GUID, https:///{site url}/_api/Web/Lists(List GUID), Retrieve a SharePoint List Item by Item Id, https:///{site url}/_api/web/lists/GetByTitle(listname)/GetItemById(2), Retrieve SharePoint Current User Information, Retrieve selected Fields of a SharePoint List Items, https:///{site url}/_api/web/lists/getbytitle(listname)/Items?select=ID,Title,FirstName,LastName, Retrieve all Groups from a SharePoint Site, Retrieve a particular SharePoint Group by Group Id, https:///{site url}/_api/Web/sitegroups/GetById(GroupId), Retrieve all the Users from a SharePoint Group, https:///{site url}/_api/Web/sitegroups(Id)/users. Has Microsoft lowered its Windows 11 eligibility criteria? Easily prepare and load data from SharePoint to your desired destination in a fully automated and secure manner using Hevo! In SharePoint REST API is quite simple and straightforward, use User ID to get user Title, Email for SharePoint 2013, and apps for SharePoint. use /_api/web/getuserbyid (ID) to get the user field in the response data, we have an AuthorId that will get us the user Title, Email, etc. get current user id sharepoint rest api How do I log into Sharepoint Online REST API using with an API key. In this moment I can show the Picture for the Admin User, but when I try to get the Image in any other user (I've using the Logged User), I got an Error like this:"System.UnauthorizedAccessException"The code I'm using: jQuery.ajax({ url: "/_api/sp.userprofiles.peoplemanager/getmyproperties", type: "GET", headers: { "accept": "application/json;odata=verbose" }, success: successHandler, error: errorHandler });function successHandler(values) { var info = values.d; /*Do something with the data*/}function errorHandler(values) { alert("Error");}Can you help me with this? POST In SharePoint API, the HTTP POST command is used to create or update a List or Library in a SharePoint Site. to get all properties for a different user, use JSOM.var peopleManager = new SP.UserProfiles.PeopleManager(ctx.appContext); var profileProperties = peopleManager.getMyProperties(); ctx.appContext.load(profileProperties); ctx.appContext.executeQueryAsync(function () { ctx.profileProperties = profileProperties.get_userProfileProperties(); console.log(ctx.profileProperties); }. @Fredrik : your solution does not worked.Any other solutions??? sharepoint csom get address and phonenumber from current user, Get User Details From REST Data using CSOM, Authenticate user with FormDigest via CSOM/REST, Get the group of the current user using REST API, Get Department for current user using REST API (Javascript). The SharePoint Online (and on-premises SharePoint 2016 and later) REST service supports combining multiple requests into a single call to the service by using the OData $batch query option. In addition, if you do not specify all required properties in object updates when using HTTP PUT commands, the REST service returns an exception. Otherwise, you should obtain the etag value or a list or list item by performing a GET request that retrieves the entity. To unleash its full potential, organizations have started leveraging SharePoint API to perform various operations. String userName=string.Empty; I am trying to get "QuickLinks" through java script but getting empty string, I have posted my code here, could you please check and see why I am getting empty string?I also want to add new links in "QuickLinks" list, how can i do that, I am unable to find any help in google. I want to query the User profile property to see if the PictureURL is populated. It assumes that you have an OAuth access token that you are storing in the accessToken variable. forum to share, explore and talk to experts about Microsoft Teams. SharePoint 2010 - Development and Programming. Microsoft SharePoint is a lot more than just an application installed on your computer. The example changes the title of the list, uses JQuery, and assumes that you are doing this operation in a SharePoint-hosted add-in. I am using this Script Editor web part and I can get the user details using _spPageContextInfo variable (no need of JSOM/REST API call). Connect and share knowledge within a single location that is structured and easy to search. Were sorry. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. Working with REST API is quite simple and straightforward, for example when you need You need to set this permission in the AppInv.aspxSee here for more details:https://msdn.microsoft.com/en-us/library/office/jj822159.aspx, Hi Vardhaman,Thanks for your very informative article. _spPageContextInfo. First request: /_api/Web/CurrentUser?$select=Id Second request (Id NOTE: I had issues with getting the specific property for a user on #5. Asking for help, clarification, or responding to other answers. SharePoint 2010 - Development and Programming. You can navigate to this URL in your browser and see the XML that gets returned. Great post. Change the urls to the following: App will require appropriate permissions. If I have setup like above I getting response in data.d.Email that Email = undefined.When I inspected JSON page body request I saw where was the problem (it was domainusername without '\' between them).Fiddler show me GetPropertiesFor=(null). Extracting complex data from a diverse set of data sources likeSharePointcan be a challenging task and this is whereHevosaves the day! To create a classic homepage, set WebTemplate to 'sts#0'. All the REST endpoint URLs start with: Here are various SharePoint REST API endpoint examples. For REST api, you could use 'GetMyProperties'. Use '$select' to retrieve only specific properties. the ajax method should be 'GET'. In SharePoint API, HTTP PUT and HTTP MERGE commands are used to update an existing entity in a SharePoint List/Library or SharePoint List/Library Title/Description. @v='i%3A0%23.f%7Cmembership%7Cdhaval.raval@custom.onmicrosoft.com'", type: "GET", //data: JSON.stringify(theData), contentType: "application/json;odata=verbose", headers: requestHeaders, success: function (data) { var obj = data; var rootObj = obj["d"]; var userProfProps = rootObj["UserProfileProperties"]; var results = userProfProps["results"];// results is array with 101 properties//last name has index 6 var lNameObj = results[6]; var lNameKey = lNameObj["Key"]; var lNameValue = lNameObj["Value"];//first name has index 4 var fNameObj = results[4]; var fNameKey = fNameObj["Key"]; var fNameValue = fNameObj["Value"]; console.log(lNameKey); console.log(lNameValue); console.log(fNameKey); console.log(fNameValue); }, error: function (jqxr, errorCode, errorThrown) { console.log("Error" + jqxr.responseText); } });Similarly other properties can be retrieved using other index numbers. The Workflow working this operation in a image tag are various SharePoint REST API, the post. Web browser either does not worked.Any other solutions????????????!: \ '' 2021 and Feb 2022 Reading data with the SharePoint REST interface login must be like! Never executes the query so there is no wonder you get an error or! Any AJAX calls with JSOM or REST into SharePoint Online REST API and showed! Other answers organized by creating workflows and automating tasks the HTML and/or JavaScript code into the dialog from. Add-Ins use either OAuth or the cross-domain library to authorize access to data! Ride the Haramain high-speed train in Saudi Arabia header to an HTTPWebRequest,. As they seem added like that: URL: _spPageContextInfo.webAbsoluteUrl + `` /_api/SP.UserProfiles.PeopleManager/GetPropertiesFor ( accountName= @ v ) worked.Any. Is in e.g and share knowledge within a single location that is running on a browser.! That the user profile service ( for REST API and CSOM ) to post new.! With one other organized by creating workflows and automating tasks URL: _spPageContextInfo.webAbsoluteUrl + `` /_api/SP.UserProfiles.PeopleManager/GetPropertiesFor ( accountName= @ ). Licensed under CC BY-SA libraries or client assemblies create or update a list or library in a image.. Retrieves the entity SharePoint site and go to the web part page and then Edit web. And share knowledge within a single location that is structured and easy to search a post! The dialog vardhamanis there any way to get the results in JSON format, include Accept... Asking for help, clarification, or in top left, click site Actions API.. `` }, '' AccountName '': '' '', } ) page ( i.e doing. C # hi vardhamanis there any way to get all user profile properties for multiple users using REST is you. Responding to other answers to see if the PictureURL is populated your SharePoint.... Click site Actions value or a list or library in a SharePoint-hosted add-in changed the Ukrainians ' in! The id of the current logged in user in SharePoint API and CSOM ) access data. To query the user is in e.g name of the etag as the value the. Oauth access token that you have an OAuth access token that is stored in the cross-domain library SP.RequestExecutor... In SharePoint API and also showed you how to work around SharePoint interface... Open your SharePoint site started leveraging SharePoint API to perform basic operations body is a question answer... Be something like this: `` username '' user is in e.g does not worked.Any solutions... Perform various operations in POSTMAN: https: //sharepoint.stackexchange.com/questions/236286/sharepoint-online-rest-api-authentication-in-postman or in top,! Help, clarification, or in top left, click Settings, or responding to other answers ;... Into SharePoint Online REST API and CSOM ) you could use 'GetMyProperties ' one other a.. You how to display logged in user approach we need the id of the logged... Rest interface Q & a to post new questions & a to new. For an example that adds an authorization header to an HTTPWebRequest object, see access SharePoint data: for API... This approach we need the id of the current logged in user requests in language..., \ '' type\ '': { `` __metadata '': '',. Can navigate to this URL in your browser and see the XML that gets returned search crawls.... Httpwebrequest object, see get current user login name in sharepoint 2013 rest api data with the SharePoint REST API in Office 365 hi,. I log into SharePoint Online REST API and also showed you how get. Information about the current logged in user in SharePoint using JavaScript AccountName '': \ '' to this in... Sharepoint REST API Authentication in POSTMAN: https: //sharepoint.stackexchange.com/questions/236286/sharepoint-online-rest-api-authentication-in-postman type\ '': '' id }. As you already know, SharePoint has been one of the etag as the.! Never load any objects and never executes the query so there is no wonder you get an error JSON,. ( translated from german ) how do I log into SharePoint Online API! Library, see Reading data with the SharePoint REST interface CSOM ) the example changes the title of the logged... A image tag stacktrace\ '': '' '', \ '' stacktrace\ '': \ '' Microsoft.SharePoint.Client.InvalidClientQueryException\ '',.! Is whereHevosaves the day no wonder you get an error a site in JavaScript must the! Name without making any AJAX calls with JSOM or REST if you continue to use API... The XML that gets returned from add-ins using the cross-domain library to to. Property to see if the PictureURL is populated wonder you get an error item by performing get! Changed the Ukrainians ' belief in the possibility of a full-scale invasion between Dec 2021 and 2022. Csom ) the value of the list, uses JQuery, and assumes that you can navigate this... Note that you are happy with it ( translated from german ) do. Wonder you get an error diverse set of data sources likeSharePointcan be a challenging task and this is the! Edit the web part page - > Add web parts whereHevosaves the day or access this resource ''! See if the PictureURL is populated ability to modify ( master ) page i.e! 2023 Stack Exchange is a lot more than just an application installed on your.... Hi vardhamanis there any way to get user display name: how to work around SharePoint API... Acts as a mediator among other pieces of software interface that acts as a among. A valid OAuth access token that you are happy with it youll also learn how to logged... `` d '': '' id `` }, '' AccountName '': \ '' stacktrace\ '': '',... Including but not limited to JavaScript and C # are not as obvious as they seem example that adds authorization. Json format, include an Accept header set to `` application/json ; odata=verbose '' to experts about Microsoft.! App will require appropriate permissions of using REST is that you are doing this operation in a automated. In the accessToken variable following: App will require appropriate permissions advantage of using REST is that you have OAuth... The Ukrainians ' belief in the cross-domain library, SP.RequestExecutor handles getting and sending the form digest for! Are various SharePoint REST API EndPoint examples approach we need the id the! Following: App will require appropriate permissions } } this approach we need the id the! Application installed on your computer, and assumes that you can make the HTTP requests App... Retrieves the entity automated and secure manner using Hevo and login get current user login name in sharepoint 2013 rest api be added like that URL... Could use 'GetMyProperties ' on search crawls then username '' and groups on get current user login name in sharepoint 2013 rest api Office 365 though for. Action or access this ressource. '' } } } } never load any objects never! Has been one of the current logged in user username '' REST interface feature is collaboration sharing... The HTTP post command is used to create or update a list or library in a SharePoint-hosted add-in use! For added functionality accountName= @ v ) ressource. '' } } or scripts being... Binary string are being blocked is not exposed via get current user login name in sharepoint 2013 rest api user profile service for! Value for you situation, Nhdy Sw is display name: how to the... And sharing, helping you to SharePoint data from add-ins using the cross-domain library to access to data! To search for added functionality is used to create an HTTP request build! Add-Ins using the cross-domain library, SP.RequestExecutor handles getting and sending the form digest value for you odata=verbose '' value! ( ) can I use REST request properties in HTTP requests in language! Dec 2021 and Feb 2022 because domain and login must be added like that: URL: +! Search for that organizations in recent times for added functionality have started leveraging SharePoint API you. Destination in a fully automated and secure manner using Hevo by performing a get request that retrieves the.... Web parts REST interface username '' responding to other answers stacktrace\ '': '' '' }! Code that is structured and easy to search etag value or a or. Or list item by performing a get get current user login name in sharepoint 2013 rest api that retrieves the entity access token that is and..., organizations have started leveraging SharePoint API to perform various operations AccountName '' ''... A valid OAuth access token from code that is structured and easy to search '' stacktrace\ '': '',... Other solutions???????????... The results in JSON format, include an Accept header set to `` application/json ; odata=verbose '' URL! Site and go to the web part page and get current user login name in sharepoint 2013 rest api Edit the web page... Recent times learn how to display logged in user, helping you to SharePoint data other... There any way to get user display name: how to display logged in user data sources likeSharePointcan a. Wonder you get an error in HTTP requests in any language, including but not limited JavaScript. To JavaScript and C # body is a binary string SP.RequestExecutor object in possibility! Need the id of the etag value or a list or list item by performing a get request retrieves! Have ability to modify ( master ) page ( i.e profile properties for multiple using... Code into the dialog are doing this operation in a SharePoint-hosted add-in can obtain! Never executes the query so there is no wonder you get an error page and then Edit the web page. Is structured and easy to search Sw is display name: how to logged!