ID3242: The security token could not be authenticated or authorized

Hanamichi Sakuragi 246 Reputation points
2020-10-28T10:42:54.13+00:00

Hi,

I am getting error on search services application and open opening any pages on search I get this error ID3242: The security token could not be authenticated or authorized.

Can you help me to identify the issue?

I am using SharePoint 2016 with July 2020 PU.

35751-image.png

Thank you.

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,978 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Allen Xu_MSFT 13,831 Reputation points
    2020-10-29T08:42:27.793+00:00

    Hi @Hanamichi Sakuragi ,

    Is your Search Application Topology working fine in your SharePoint farm like below?
    36011-3.png

    Also, what “opening any pages on search” in your post means? Could you give me a sample screenshot?

    Anyway, I suggest you to start/restart Claims to Windows Token Service firstly:
    Go to Central Administration -> System Settings -> Claims to Windows Token Service -> Enable Auto Provision(If it has been enabled, disable it and then enable it again):
    35808-6.png

    Make sure the status of C2WTS is Started in Manage services on server:
    35945-7.png

    If the error still exists, then you could check your ULS Logs to trace more information:
    You can find Log path in Central Administration -> Monitoring -> Configure diagnostic logging:
    35984-4.png

    I hope this information has been useful, please let me know if you still need assistance.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Hanamichi Sakuragi 246 Reputation points
    2020-10-30T13:20:53.023+00:00

    Dear AllenXu,

    Thank you for your respond.

    I managed to fix the issue by clearing the config cache.

    Thank you.


  3. Jim Smith 1 Reputation point
    2022-06-12T09:49:58.097+00:00

    When attempting to log into a Microsoft Dynamics 365 / CRM instance, you will receive this error. ADFS has returned this message. The problem appears to be that authentication now requires a UPN (user principal name / MSDN – User Name Formats) logon since ADFS was upgraded. See here https://kodlogs.net/193/id3242-the-security-token-could-not-be-authenticated-or-authorized

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.