SOLVED

Get and Set the OWA Archive folder

Copper Contributor

(I'm referring to the Archive button in OWA.  The "quick archive" - which I think is how it's referred internally.  Not the other 2-3 archive capabilities you'll find when you google for "Exchange Online Archive".)

 

The user is only prompted by OWA to define which folder to use for Archive when they first click on it.  There is no [apparent] location in the OWA options that allows the user to view or change this folder.

 

During first use of the Archive button in OWA, I can see the HTTP request to set this user option fly by in my browser network logs: 

POST /owa/service.svc?action=UpdateUserConfiguration&EP=1&ID=-39&AC=1 HTTP/1.1
Host: outlook.office365.com
...
X-OWA-UrlPostData: %7B%22__type%22%3A%22UpdateUserConfigurationJsonRequest%3A%23Exchange%22%2C%22Header%22%3A%7B%22__type%22%3A%22JsonRequestHeaders%3A%23Exchange%22%2C%22RequestServerVersion%22%3A%22Exchange2013%22%2C%22TimeZoneContext%22%3A%7B%22__type%22%3A%22TimeZoneContext%3A%23Exchange%22%2C%22TimeZoneDefinition%22%3A%7B%22__type%22%3A%22TimeZoneDefinitionType%3A%23Exchange%22%2C%22Id%22%3A%22Central%20Standard%20Time%22%7D%7D%7D%2C%22Body%22%3A%7B%22__type%22%3A%22UpdateUserConfigurationOwaRequest%3A%23Exchange%22%2C%22UserConfiguration%22%3A%7B%22__type%22%3A%22ServiceUserConfiguration%3A%23Exchange%22%2C%22UserConfigurationName%22%3A%7B%22__type%22%3A%22UserConfigurationNameType%3A%23Exchange%22%2C%22BaseFolderId%22%3A%7B%22__type%22%3A%22DistinguishedFolderId%3A%23Exchange%22%2C%22Id%22%3A%22root%22%7D%2C%22Name%22%3A%22OWA.UserOptions%22%7D%2C%22Dictionary%22%3A%5B%7B%22__type%22%3A%22UserConfigurationDictionaryEntry%3A%23Exchange%22%2C%22DictionaryKey%22%3A%7B%22__type%22%3A%22UserConfigurationDictionaryObject%3A%23Exchange%22%2C%22Type%22%3A%22String%22%2C%22Value%22%3A%5B%22ArchiveFolderId%22%5D%7D%2C%22DictionaryValue%22%3A%7B%22__type%22%3A%22UserConfigurationDictionaryObject%3A%23Exchange%22%2C%22Type%22%3A%22String%22%2C%22Value%22%3A%5B%22AAMkADRiY2Q2YWZkLWI3NjctNGNiZi1hNWFhLTczMWU3NzRkYWNhYwAuAAAAAAAoV6V%2BG%2BsjR5XODG7ipEbRAQAtgw4AwYWRRJ7f5wPhvyvDAABII%2F0yAAA%3D%22%5D%7D%7D%2C%7B%22__type%22%3A%22UserConfigurationDictionaryEntry%3A%23Exchange%22%2C%22DictionaryKey%22%3A%7B%22__type%22%3A%22UserConfigurationDictionaryObject%3A%23Exchange%22%2C%22Type%22%3A%22String%22%2C%22Value%22%3A%5B%22NavigationPaneViewOption%22%5D%7D%2C%22DictionaryValue%22%3A%7B%22__type%22%3A%22UserConfigurationDictionaryObject%3A%23Exchange%22%2C%22Type%22%3A%22Integer32%22%2C%22Value%22%3A%5B%221%22%5D%7D%7D%5D%7D%7D%7D
Action: UpdateUserConfiguration
X-Requested-With: XMLHttpRequest
X-OWA-ActionName: UpdateUserConfigurationAction
...

 

And if you decode the X-OWA-UrlPostData header you get: 

{"__type":"UpdateUserConfigurationJsonRequest:#Exchange","Header":
{"__type":"JsonRequestHeaders:#Exchange","RequestServerVersion":"Exchange2013","TimeZoneContext":
{"__type":"TimeZoneContext:#Exchange","TimeZoneDefinition":
{"__type":"TimeZoneDefinitionType:#Exchange","Id":"Central Standard Time"}}},"Body":
{"__type":"UpdateUserConfigurationOwaRequest:#Exchange","UserConfiguration":
{"__type":"ServiceUserConfiguration:#Exchange","UserConfigurationName":
{"__type":"UserConfigurationNameType:#Exchange","BaseFolderId":
{"__type":"DistinguishedFolderId:#Exchange","Id":"root"},"Name":"OWA.UserOptions"},"Dictionary":[
{"__type":"UserConfigurationDictionaryEntry:#Exchange","DictionaryKey":
{"__type":"UserConfigurationDictionaryObject:#Exchange","Type":"String","Value":["ArchiveFolderId"]},"DictionaryValue":
{"__type":"UserConfigurationDictionaryObject:#Exchange","Type":"String","Value":["AAMkADRiY2Q2YWZkLWI3NjctNGNiZi1hNWFhLTczMWU3NzRkYWNhYwAuAAAAAAAoV6V+G+sjR5XODG7ipEbRAQAtgw4AwYWRRJ7f5wPhvyvDAABII/0yAAA="]}},
{"__type":"UserConfigurationDictionaryEntry:#Exchange","DictionaryKey":
{"__type":"UserConfigurationDictionaryObject:#Exchange","Type":"String","Value":["NavigationPaneViewOption"]},"DictionaryValue":
{"__type":"UserConfigurationDictionaryObject:#Exchange","Type":"Integer32","Value":["1"]}}]}}}

 

And you see that it's setting the ArchiveFolderId User Option.

 

I would like to find a way to obtain and modify the ArchiveFolderId User Option using Powershell, Unified Graph API, EWS, or anything.  

 

(I'd like to avoid using Greasemonkey.)

 

Thoughts?

3 Replies
best response confirmed by Jesse Thompson (Copper Contributor)
Solution

I dont think it's exposed anywhere, at least my attempts to find a way to do this have failed. Considering they just pushed a default "Archive" folder, my guess is we will not get any controls over this. Well, until after they've received some complaints from large customers I guess :)

 

 

I noticed that not all accounts are being prompted to choose the folder.  Was there an announcement for this change?  In a sense, it makes my original question moot, but it introduces more questions.  Such as, what happens for existing accounts that specified a different folder?  Will they ever be able to change it?  Will it get reset to the default at some point?

No idea, nothing was announced. I know that if you had the "archive" folder created previously, it will provision a new one. The feature should still be using the one designated by the user, however what's the point of creating a new folder (a default one at that) is beyond me. Hopefully we will manege to convince them to give us some control over this...

1 best response

Accepted Solutions
best response confirmed by Jesse Thompson (Copper Contributor)
Solution

I dont think it's exposed anywhere, at least my attempts to find a way to do this have failed. Considering they just pushed a default "Archive" folder, my guess is we will not get any controls over this. Well, until after they've received some complaints from large customers I guess :)

 

 

View solution in original post