none
Error 5015: The authenticated user doesn't have sufficient privileges to issue this request RRS feed

  • Question

  • I'm trying to do a GetUserAvailability request on a Outlook 365 account.

    I'm sending the request to the url after the authentication:

    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:exm="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:ext="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Header>
        <ext:TimeZoneContext>
            <ext:TimeZoneDefinition Name="(UTC-05:00) Eastern Time (US &amp; Canada)" Id="Eastern Standard Time">
                <ext:Periods>
                    <ext:Period Bias="PT5H" Name="Standard" Id="trule:Microsoft/Registry/Eastern Standard Time/2006-Standard" />
                    <ext:Period Bias="PT4H" Name="Daylight" Id="trule:Microsoft/Registry/Eastern Standard Time/2006-Daylight" />
                    <ext:Period Bias="PT5H" Name="Standard" Id="trule:Microsoft/Registry/Eastern Standard Time/2007-Standard" />
                    <ext:Period Bias="PT4H" Name="Daylight" Id="trule:Microsoft/Registry/Eastern Standard Time/2007-Daylight" />
                </ext:Periods>
                <ext:TransitionsGroups>
                    <ext:TransitionsGroup Id="0">
                        <ext:RecurringDayTransition>
                            <ext:To Kind="Period">trule:Microsoft/Registry/Eastern Standard Time/2006-Daylight</ext:To>
                            <ext:TimeOffset>PT2H</ext:TimeOffset>
                            <ext:Month>4</ext:Month>
                            <ext:DayOfWeek>Sunday</ext:DayOfWeek>
                            <ext:Occurrence>1</ext:Occurrence>
                        </ext:RecurringDayTransition>
                        <ext:RecurringDayTransition>
                            <ext:To Kind="Period">trule:Microsoft/Registry/Eastern Standard Time/2006-Standard</ext:To>
                            <ext:TimeOffset>PT2H</ext:TimeOffset>
                            <ext:Month>10</ext:Month>
                            <ext:DayOfWeek>Sunday</ext:DayOfWeek>
                            <ext:Occurrence>-1</ext:Occurrence>
                        </ext:RecurringDayTransition>
                    </ext:TransitionsGroup>
                    <ext:TransitionsGroup Id="1">
                        <ext:RecurringDayTransition>
                            <ext:To Kind="Period">trule:Microsoft/Registry/Eastern Standard Time/2007-Daylight</ext:To>
                            <ext:TimeOffset>PT2H</ext:TimeOffset>
                            <ext:Month>3</ext:Month>
                            <ext:DayOfWeek>Sunday</ext:DayOfWeek>
                            <ext:Occurrence>2</ext:Occurrence>
                        </ext:RecurringDayTransition>
                        <ext:RecurringDayTransition>
                            <ext:To Kind="Period">trule:Microsoft/Registry/Eastern Standard Time/2007-Standard</ext:To>
                            <ext:TimeOffset>PT2H</ext:TimeOffset>
                            <ext:Month>11</ext:Month>
                            <ext:DayOfWeek>Sunday</ext:DayOfWeek>
                            <ext:Occurrence>1</ext:Occurrence>
                        </ext:RecurringDayTransition>
                    </ext:TransitionsGroup>
                </ext:TransitionsGroups>
                <ext:Transitions>
                    <ext:Transition>
                        <ext:To Kind="Group">0</ext:To>
                    </ext:Transition>
                    <ext:AbsoluteDateTransition>
                        <ext:To Kind="Group">1</ext:To>
                        <ext:DateTime>2007-01-01T00:00:00</ext:DateTime>
                    </ext:AbsoluteDateTransition>
                </ext:Transitions>
            </ext:TimeZoneDefinition>
        </ext:TimeZoneContext>
        <exm:RequestTypeHeader>
            <ext:RequestType>CrossForest</ext:RequestType>
        </exm:RequestTypeHeader>
        <exm:SerializedSecurityContext>
            <exm:UserSid>S-1-5-21-714168755-2343952202-3006219142-1210</exm:UserSid>
            <exm:GroupSids>
                <exm:GroupIdentifier Attributes="7">
                    <ext:SecurityIdentifier>S-1-5-21-714168755-2343952202-3006219142-513</ext:SecurityIdentifier>
                </exm:GroupIdentifier>
                <exm:GroupIdentifier Attributes="7">
                    <ext:SecurityIdentifier>S-1-1-0</ext:SecurityIdentifier>
                </exm:GroupIdentifier>
                <exm:GroupIdentifier Attributes="7">
                    <ext:SecurityIdentifier>S-1-5-2</ext:SecurityIdentifier>
                </exm:GroupIdentifier>
                <exm:GroupIdentifier Attributes="7">
                    <ext:SecurityIdentifier>S-1-5-11</ext:SecurityIdentifier>
                </exm:GroupIdentifier>
                <exm:GroupIdentifier Attributes="7">
                    <ext:SecurityIdentifier>S-1-5-15</ext:SecurityIdentifier>
                </exm:GroupIdentifier>
                <exm:GroupIdentifier Attributes="3221225479">
                    <ext:SecurityIdentifier>S-1-5-5-0-85073461</ext:SecurityIdentifier>
                </exm:GroupIdentifier>
                <exm:GroupIdentifier Attributes="536870919">
                    <ext:SecurityIdentifier>S-1-5-21-714168755-2343952202-3006219142-1131</ext:SecurityIdentifier>
                </exm:GroupIdentifier>
            </exm:GroupSids>
        </exm:SerializedSecurityContext>
    </soap:Header>
    <soap:Body>
        <exm:GetUserAvailabilityRequest>
            <ext:TimeZone>
                <ext:Bias>300</ext:Bias>
                <ext:StandardTime>
                    <ext:Bias>0</ext:Bias>
                    <ext:Time>02:00:00</ext:Time>
                    <ext:DayOrder>1</ext:DayOrder>
                    <ext:Month>11</ext:Month>
                    <ext:DayOfWeek>Sunday</ext:DayOfWeek>
                </ext:StandardTime>
                <ext:DaylightTime>
                    <ext:Bias>-60</ext:Bias>
                    <ext:Time>02:00:00</ext:Time>
                    <ext:DayOrder>2</ext:DayOrder>
                    <ext:Month>3</ext:Month>
                    <ext:DayOfWeek>Sunday</ext:DayOfWeek>
                </ext:DaylightTime>
            </ext:TimeZone>
            <exm:MailboxDataArray>
                <ext:MailboxData>
                    <ext:Email>
                        <ext:Name>azerty qsdfg</ext:Name>
                        <ext:Address>azerty@gfdsq.onmicrosoft.com</ext:Address>
                        <ext:RoutingType>SMTP</ext:RoutingType>
                    </ext:Email>
                    <ext:AttendeeType>Required</ext:AttendeeType>
                    <ext:ExcludeConflicts>false</ext:ExcludeConflicts>
                </ext:MailboxData>
            </exm:MailboxDataArray>
            <ext:FreeBusyViewOptions>
                <ext:TimeWindow>
                    <ext:StartTime>2012-10-29T00:00:00</ext:StartTime>
                    <ext:EndTime>2012-10-31T00:00:00</ext:EndTime>
                </ext:TimeWindow>
                <ext:MergedFreeBusyIntervalInMinutes>15</ext:MergedFreeBusyIntervalInMinutes>
                <ext:RequestedView>MergedOnly</ext:RequestedView>
            </ext:FreeBusyViewOptions>
        </exm:GetUserAvailabilityRequest>
    </soap:Body>

    I'm receiving a body from the EWS like that:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
        <s:Body>
            <s:Fault>
                <faultcode xmlns:a="http://schemas.microsoft.com/exchange/services/2006/types">a:ErrorProxyRequestNotAllowed</faultcode>
                <faultstring xml:lang="en-US">The authenticated user doesn't have sufficient privileges to issue this request.</faultstring>
                <detail>
                    <m:ErrorCode xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">5015</m:ErrorCode>
                </detail>
            </s:Fault>
        </s:Body>
    </s:Envelope>

    What means Error 5015? Is it a problem in the request or in the exchange itself?

    Thank you in advance

    Julien



    Friday, November 9, 2012 9:43 AM

All replies

  • I isolated the problem.

    It's with the CrossForest Type.

    If I do a request without CrossForest type it's working but with the previous request i'm receiving the previous error.

    Friday, November 9, 2012 10:04 AM