SOLVED

Unable to update current user,getting 403.

%3CLINGO-SUB%20id%3D%22lingo-sub-1385370%22%20slang%3D%22en-US%22%3EUnable%20to%20update%20current%20user%2Cgetting%20403.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1385370%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3ETried%20updating%20current%20user%20with%20the%20following%20details.%3C%2FP%3E%3CP%3EPut%20Request%20%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CA%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Ehttps%3A%2F%2Fwww.yammer.com%2Fapi%2Fv1%2Fusers%2F%3CUSERID%3E.json%3C%2FUSERID%3E%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Ejson%20body%3A%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7B%3CBR%20%2F%3E%22job_title%22%3A%20%22Testing%22%3CBR%20%2F%3E%7D%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EResponse%3A%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22response%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22error_code%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22NOT_ALLOWED_FOR_AAD_CONNECTED_USER%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22error_message%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22Operation%26nbsp%3Bis%26nbsp%3Bnot%26nbsp%3Ballowed%26nbsp%3Bfor%26nbsp%3BAAD%26nbsp%3Bconnected%26nbsp%3Buser%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EAny%20help%20would%20be%20appriciated.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EThanks%20in%20anticipation.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1385370%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EREST%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EUpdate%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EYammer%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1387519%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20update%20current%20user%2Cgetting%20403.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1387519%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F665849%22%20target%3D%22_blank%22%3E%40nsinghdeo%3C%2FA%3E%26nbsp%3BI'm%20getting%20the%20same%20behavior%20through%20the%20admin%20UI.%26nbsp%3B%20More%20than%20likely%20it%20is%20because%20Yammer%20profiles%20have%20been%20integrated%20with%20AAD.%26nbsp%3B%20You%20should%20use%20standard%20AAD%20tools%20to%20update%20profile%20information.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1388218%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20update%20current%20user%2Cgetting%20403.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1388218%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F332036%22%20target%3D%22_blank%22%3E%40Tom_Kretzmer%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3EThanks%20for%20the%20reply.So%20in%20that%20case%20can't%20we%20update%20the%20user%20from%20any%20external%20tool%20%3B%20any%20idea%3F%3C%2FP%3E%3CP%3ETo%20add%20more%20%2C%26nbsp%3Bis%20rest%20API%20no%20longer%20going%20to%20work%20for%20AAD%20users%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E--%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1393261%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20update%20current%20user%2Cgetting%20403.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1393261%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F665849%22%20target%3D%22_blank%22%3E%40nsinghdeo%3C%2FA%3E%26nbsp%3BMy%20guess%20is%20that%20the%20Yammer%20profile%20update%20API%20probably%20won't%20work%20anymore%2C%20so%20you%20will%20have%20to%20adjust%20your%20app%20to%20address%20AAD%20directly.%26nbsp%3B%20Best%20practice%20is%20to%20use%20the%20Microsoft%20Graph%20API%20to%20do%20this.%26nbsp%3B%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fuser-update%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EDocumentation%3C%2FA%3E)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGood%20luck!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1394862%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20update%20current%20user%2Cgetting%20403.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1394862%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F332036%22%20target%3D%22_blank%22%3E%40Tom_Kretzmer%3C%2FA%3E%26nbsp%3B%2CThanks%20for%20the%20reply.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi,

Tried updating current user with the following details.

Put Request : 

https://www.yammer.com/api/v1/users/<userid>.json

 

json body: 

{
"job_title": "Testing"
}

Response:

{
    "response": {
        "error_code""NOT_ALLOWED_FOR_AAD_CONNECTED_USER",
        "error_message""Operation is not allowed for AAD connected user"
    }
}
 
Any help would be appriciated.
Thanks in anticipation.
 
4 Replies

@nsinghdeo I'm getting the same behavior through the admin UI.  More than likely it is because Yammer profiles have been integrated with AAD.  You should use standard AAD tools to update profile information.

Hi @Tom_Kretzmer ,

Thanks for the reply.So in that case can't we update the user from any external tool ; any idea?

To add more , is rest API no longer going to work for AAD users ?

 

--

Thanks

 

Best Response confirmed by nsinghdeo (New Contributor)
Solution

@nsinghdeo My guess is that the Yammer profile update API probably won't work anymore, so you will have to adjust your app to address AAD directly.  Best practice is to use the Microsoft Graph API to do this.  (Documentation)

 

Good luck!

@Tom_Kretzmer ,Thanks for the reply.