Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

200
Vistas
How can we pass @odataid for an ajax call to call a post method that adds an owner to group?

Can anyone please help me with how we can make ajax call the method to add Owner to O365 group. I am using below mentioned end-point: https://graph.microsoft.com/v1.0/groups/{id}/owners/$ref

This is how my ajax call is looking like as i'm thinking the user information will be pass through data property. Just want to know if this is the right way to work with this API

$.ajax({  
        method: 'POST',  
        url: "https://graph.microsoft.com/v1.0/groups/"+ OGroupID +"/owners/$ref", //pass Office 365 Group Id  
        headers: {  
            'Authorization': 'Bearer ' + token,  
            'Content-Type': 'application/json'  
        }, 
        data:{
          "@odata.id": "https://graph.microsoft.com/v1.0/users/" +delegateOwner
        },      
        }).success(function(response) {  
            console.log(response.value);  
            var data = response.value;  
        }).error(function(error) {});
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I think this feature for passing @Odataid using Ajax call is currently not available , if you want this feature to be there , you can raise a feature request - https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/idb-p/Microsoft365DeveloperPlatform .

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda