#SharePointProblems | Koskila.net

Solutions are worthless unless shared! Antti K. Koskela's Personal Professional Blog

Solving error "AADSTS90013: Invalid input received from the user"

koskila
Reading Time 3 min
Word Count 400 words
Comments 2 comments
Rating 4 (1 votes)
View

I stumbled upon a customer that complained about some pages in their intranet throwing weird errors with authentication. Those pages seemed to have one thing in common - there was a Yammer embed (or a SharePoint script webpart with Yammer embed script in it, to be precise) there. The error code they got was "AADSTS90013: Invalid input received from the user".

Below, you can see an example of the error screen.

AADSTS90013: Invalid input received from the user.

AADSTS90013: Invalid input received from the user.

Okay - this is going to be extremely specific, and probably won't solve the issue for all of you out there! But this is what worked for this customer:

Solution: Check Yammer embed for issues in authentication configuration

In this case, there was a Yammer embed on the page that threw the error. If you'd use a tool like Wireshark (or Chrome network tab and had quick fingers), you'd see that the authentication call to Yammer failed. Hence you're redirected to the login page, which tries to authenticate you against Yammer - and fails. Quite catastrophically, even, and doesn't return you to the original site.

AADSTS90013: Network-tab shows that call to yammer fails

AADSTS90013: The Network tab shows that we're authenticating against Yammer

Now, this should be a fairly fast detour for the user - the login page should actually log you in and then redirect you back! But alas, it fails. Why?

In this particular case, the Yammer embed script was misconfigured. There were extra < > -letters in the network name, and that messed up the authentication. However, the same code had worked just fine for months - even though the embed had those extra letters!

What was wrong with the embed in this case?

So whereas it should've been something like this:

<div id="embedded-feed" style="height:800px;width:400px;"></div>
<script type="text/javascript" src="https://s0.assets-yammer.com/assets/platform_embed.js"></script>
<script type="text/javascript">

yam.connect.embedFeed({

  container: "#embedded-feed",
  network: "yammernetworkname",

});

</script>

It was like this:

<div id="embedded-feed" style="height:800px;width:400px;"></div>
<script type="text/javascript" src="https://s0.assets-yammer.com/assets/platform_embed.js"></script>
<script type="text/javascript">

yam.connect.embedFeed({

  container: "#embedded-feed",
  network: "<yammernetworkname>",

});

</script>

(Yammer embed options omitted for clarity)

So, even with the "network" attribute containing a faulty value, it used to work for quite some time. Suddenly, it stopped working.

We couldn't figure out the actual reason why it stopped working. Could be Microsoft making changes to Yammer platform JavaScript -library, or tweaking Azure AD authentication settings.

The embed script itself was probably broken all along. The main thing for us was that everything started working after the embed script was fixed! :)

Comments

Interactive comments not implemented yet. Showing legacy comments migrated from WordPress.
Jeniene Stango
2022-07-27 17:08:39)
Please Help! Our business has been taken down by a Microsoft sign in with the above message as seen here AADSTS90013. We have all our business tied to this. Made multitude of calls and multiple tickets are opened for help. We are a silver partner and have not been taken care of. They are not taking care of our problem. Our business is down. Taking down our business because of no reliable support. We sell Microsoft 365 to businesses We are an MSP!
2022-08-11 17:03:40
Hi Jeniene, While I sympathize with your issue (there's plenty to be said about experiences with Microsoft Support...), there isn't much I can do directly to help you. When support fails to help you, pretty much the only thing you can do is to complain on Twitter and hope someone sees your issue - and tagging @MicrosoftHelps won't hurt. If you have any more details that you can share about the issue (just the error code without context won't take me very far), I can also try to help figure out what you can do next?
Whitewater Magpie Ltd.
© 2025
Static Site Generation timestamp: 2025-08-12T07:18:40Z