Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

205
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda