<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Get Users Department Office 365</title><link>https://www.infopathdev.com:443/forums/thread/116057.aspx</link><pubDate>Mon, 17 Apr 2017 14:29:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116057</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116057.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116057</wfw:commentRss><description>I think the User Profile service does work in Office 365. All you have to do is not run the query on form open, and in a form load rule, set the query field to the username function and execute the query.....</description></item><item><title>Get Users Department Office 365</title><link>https://www.infopathdev.com:443/forums/thread/116049.aspx</link><pubDate>Fri, 14 Apr 2017 16:37:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116049</guid><dc:creator>smonczka</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116049.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116049</wfw:commentRss><description>&lt;p&gt;We are using Office 365.&amp;nbsp;&amp;nbsp;We would like a form to open up and show the current user and their department.&amp;nbsp;I am able to pull the Current User by using the a data connection to the User Information List... xdUser:get-UserName().&amp;nbsp; Is there any way to get the Department of the current user?&lt;/p&gt;&lt;p&gt;We used to use be able to use GetUserProfileByName but this will not work with the claims based authentication that Office 365 uses.&amp;nbsp;&amp;nbsp;The fixes for this method are, I have to say, over my experience level.&amp;nbsp; Is there no semi easy way to return a users department when opening up an InfoPath form?&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>