locked
o365|Adfs login error: An error occurred You are not authorized to access this site. RRS feed

  • General discussion

  • Hi All,

    We have a custom claim rule and added some IPs but when we trying to access o365 portal from one of those IPs, getting below error. While its working fine from other IPs.

    An error occurred

    You are not authorized to access this site. Click here to sign out and sign in again or contact your administrator for permissions.

    error details

    • Activity ID: bc77ad88-3472-44e3-940c-3ea98d8763e2
    • Relying party: Microsoft Office 365 Identity Platform
    • Error time: Sat, 02 Nov 2019 18:52:05 GMT
    • Cookie: enabled
    • User agent string: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0

    Rule:  for example

    c1:[Type == "http://schemas.microsoft.com/ws/2012/01/insidecorporatenetwork", Value == "false"] && c2:[Type == "http://schemas.microsoft.com/2012/01/requestcontext/claims/x-ms-forwarded-client-ip", Value =~ "^(?!192\.168\.1\.77|10\.83\.118\.23)"] => issue(Type = "http://schemas.microsoft.com/authorization/claims/deny", Value = " DenyUsersWithClaim");

    like this rule we have more that two IPs but syntax is exact same.


    Sunday, November 3, 2019 3:43 AM