none
AllowMicrosoftAccountConnection device setting using MDM does not work RRS feed

  • Question

  • Sent the following command to device:=

    <SyncML xmlns="SYNCML:SYNCML1.2">
    <SyncHdr>
    <VerDTD>1.2</VerDTD>
    <VerProto>DM/1.2</VerProto>
    <SessionID>3</SessionID>
    <MsgID>1</MsgID>
    <Target>
    <LocURI>XXXXXXXXXXXX</LocURI>
    </Target>
    <Source>
    <LocURI>https://enterpriseenrollment.mydomain.com</LocURI>
    </Source>
    <Cred>
    <Meta>
    <Format xmlns="syncml:metinf">b64</Format>
    <Type xmlns="syncml:metinf">syncml:auth-md5</Type>
    </Meta>
    <Data>XXXXXXXXXXXX</Data>
    </Cred>
    </SyncHdr>
    <SyncBody>
    <Status>
    <CmdID>1</CmdID>
    <MsgRef>1</MsgRef>
    <CmdRef>0</CmdRef>
    <Cmd>SyncHdr</Cmd>
    <Data>212</Data>
    <TargetRef>https://enterpriseenrollment.mydomain.com</TargetRef>
    <SourceRef>XXXXXXXXXXXX</SourceRef>
    </Status>
    <Status>
    <CmdID>2</CmdID>
    <MsgRef>1</MsgRef>
    <CmdRef>2</CmdRef>
    <Cmd>Alert</Cmd>
    <Data>212</Data>
    </Status>
    <Status>
    <CmdID>3</CmdID>
    <MsgRef>1</MsgRef>
    <CmdRef>3</CmdRef>
    <Cmd>Replace</Cmd>
    <Data>200</Data>
    </Status>
    <Add>
    <CmdID>4</CmdID>
    <Item>
    <Target>
    <LocURI>./Vendor/MSFT/PolicyManager/My/Accounts/AllowMicrosoftAccountConnection</LocURI>
    </Target>
    <Meta>
    <Format xmlns="syncml:metinf">int</Format>
    </Meta>
    <Data>0</Data>
    </Item>
    </Add>
    </SyncBody>
    </SyncML>

    I get this as the response when I try to set the "AllowMicrosoftAccountConnection" value to "0":-

    <SyncML xmlns="SYNCML:SYNCML1.2">
    <SyncHdr>
    <VerDTD>1.2</VerDTD>
    <VerProto>DM/1.2</VerProto>
    <SessionID>3</SessionID>
    <MsgID>2</MsgID>
    <Target>
    <LocURI>https://enterpriseenrollment.mydomain.com</LocURI>
    </Target>
    <Source>
    <LocURI>XXXXXXXXXXXXX</LocURI>
    </Source>
    </SyncHdr>
    <SyncBody>
    <Status>
    <CmdID>1</CmdID>
    <MsgRef>1</MsgRef>
    <CmdRef>0</CmdRef>
    <Cmd>SyncHdr</Cmd>
    <Chal>
    <Meta>
    <Format xmlns="syncml:metinf">b64</Format>
    <Type xmlns="syncml:metinf">syncml:auth-md5</Type>
    <NextNonce xmlns="syncml:metinf">XXXXXXXXXXXXX</NextNonce>
    </Meta>
    </Chal>
    <Data>212</Data>
    </Status>
    <Status>
    <CmdID>2</CmdID>
    <MsgRef>1</MsgRef>
    <CmdRef>4</CmdRef>
    <Cmd>Add</Cmd>
    <Data>405</Data>
    </Status>
    <Final/>
    </SyncBody>
    </SyncML>

    I get the result as 405 on some of the Windows devices. Some work and some don't.

    Any solution to this problem ? I tried changing Format of this field as "int", "chr", "bool" but nothing works

    --DFriend

    Tuesday, November 4, 2014 10:22 AM

All replies

  • By the way, Syncml 405 is "Command not Allowed"

    --DFriend

    Tuesday, November 4, 2014 10:25 AM
  • Hi DFriend,

    If you already have a Microsoft account on device, then you cannot perform this command. That may be the reason the command fails on device. The other thing you could try is to push a "Replace" command instead of Add. Hope this helps.

    -Shyam

    Monday, December 22, 2014 7:41 AM