When attempting a REST API call to get a user in a group using the "getbyemail" method, an error is returned stating "Resource for the request getbytitle cannot

Individuals are part of the sharepoint group: https://i.sstatic.net/NcwU8.png

When attempting a simple GET request in the browser: https://mycompany.sharepoint.com/sites/testsite2/_api/web/sitegroups/getbytitle('TestGroup')/users/getbyemail('[email protected]')

An error is returned: "Cannot find resource for the request getbytitle." https://i.sstatic.net/AyBvK.png

Answer №1

Retrieve a specific site group using getbyName:

/_api/web/sitegroups/getbyName('GroupName')/users/getbyemail('[email protected]')

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Encountering a data property error while trying to render ejs using axios

I am encountering an error message "TypeError: Cannot read property 'data' of undefined" when trying to display results.ejs using data from an API. Can someone help me identify what's incorrect with the rendering code? Thank you. index.js: ...

NodeJS authentication using Express-Session and Passport encounters errors

I have successfully implemented authentication and login functionality using the Google OAuth API in my NodeJS backend. const passport = require('passport'); const GoogleStrategy = require('passport-google-oauth').OAuth2Strategy; ...

Error: The current component does not have a template or render function specified. Check the <App>

I am a beginner in Vue js and I am facing an issue while running my application. It is showing an empty page with the error message: Component is missing template or render function. at <App>. Additionally, there is also a warning from Vue Router sa ...

Fixing the 'Unexpected identifier' error when utilizing an imported function from a separate file

I've been attempting to utilize a function that I previously defined in another file and exported. However, when I try to use it and run the node server, an error is thrown as displayed below. Could this be due to a syntax error on my part? The path ...

Efficient segmentation of text using CSS and JavaScript

Currently, I'm involved in a project that allows users to create their own timelines with events. However, there seems to be an issue with the event titles. Users are able to create events with extremely long titles, such as: `1231231231231231231231 ...

Exploring the possibilities of AJAX with forms?

I am faced with the challenge of integrating forms that interact with the server using AJAX for practical purposes such as cascade combos, suggestions, and multiple correlated selections (for example, having elementary knowledge of French [add] and good kn ...

Retrieving the output of a function executed on an API in a separate .js file

I am trying to accomplish a simple task like this (assuming I want the first element). The function getRooms is implemented in a separate .js file. $(document).ready(function() { $("#title").text(api.rooms.getRooms()[0]); //THIS ISN'T WORKING }) ...

SailsJs: Model.find().exec() can sometimes generate unexpected properties

I recently created a service function in api/services/SomeServices.js getCreditDebitNotes:function(vid){ console.log('resolving credit and debits'); var deferred=sails.q.defer(); CreditDebitNotes.find({vendorID:vid,status:1},{selec ...

How can I determine in JavaScript if the Backspace key is being long pressed on iOS or Android devices?

In the process of developing a web application using Vue.js, I encountered an issue with detecting long presses of the Backspace key on desktop keyboards (Windows PCs specifically). On desktop, the event triggers multiple times as long as the Backspace key ...

Can you please highlight parts of the text and provide dialogue with additional information?

I am currently enhancing my blog and looking for a way to implement JavaScript functionality that will help highlight specific parts of my text and provide additional information, like: I am currently working on my laptop When the user clicks on "lapto ...

Having trouble adding the Vonage Client SDK to my preact (vite) project

I am currently working on a Preact project with Vite, but I encountered an issue when trying to use the nexmo-client SDK from Vonage. Importing it using the ES method caused my project to break. // app.tsx import NexmoClient from 'nexmo-client'; ...

import the AJAX response into a table format

With over 10000 rows in Data-table 1.10, I am looking to populate the table body using ajax response. Currently, I am returning the data as an array and iterating over it on the frontend in HTML. This results in the data-table rendering all the rows regard ...

What could be causing the catch() block to not execute in Objection.js queries, with the then() method always running and returning either 0 or 1 as a result?

When executing a query using Objection.js, the result of the query will be passed to the then() block as either 0 or 1 depending on its success or failure. Instead of handling errors in the catch block, I find myself checking falsey values. Is there a be ...

unable to navigate to next or previous page in react-bootstrap-table2-paginator

I successfully implemented a table with pagination using react-bootstrap-table2-paginator. On each page number click, it calls an API to fetch the table data. However, I encountered issues with the next page, previous page, and last page buttons not workin ...

How can a node be added between two nodes based on an attribute condition?

Is there a jQuery function, or perhaps another library function, that allows for the insertion of a node (div) between two other nodes (divs) based on its attribute? For instance: Assume I have the following HTML code: <div value=111/> <div val ...

Tips on accessing InnerText with VUEJS

I'm struggling with displaying the innerText generated by my generatePseudonym() function in a modal dialog. To better illustrate, here is a screenshot of what I mean: https://i.sstatic.net/pEl5P.png I am aiming to show the output Anastasia Shah as th ...

What are the steps to make a counter-clockwise dial with jQuery Knob?

Is there a way to use multiple instances of jQuery.countdown? Can I create countdown circles using jQuery Knob? Find examples here and here. Using Multiple instances of jQuery.countdown <div data-countdown="2016/01/01"></div> <div data-co ...

This code snippet results in the property being unrecognized

I recently wrote this block of code and encountered an error while trying to run the alert function. It keeps telling me that 'this.words' is not defined. I suspect the issue lies within the jQuery portion, as I am able to access the array where ...

Adding the b tag in jQuery using html() causes an issue where I receive an HTTP/1.1 500 Internal Server Error

This block of code contains HTML and jQuery snippets that handle a like feature on a website: html <a href="#" data-postid="{{ $post->id }}" data-userid="{{ Auth::user()->id }}" class="like-post"> @if(Auth::user()->likes()->where( ...

Utilizing JQuery to request a file input and subsequently handle its processing

I am working towards creating a functionality where users can click a button, select a file, and have the program perform actions on that file, such as sending it through an AJAX request for processing. Currently, I have set up a hidden form along with a b ...