Yes, setting the role's list of users.
It would be nice to be able to populate the role from a web service, but
your suggestion should work along those lines just as well.
Thanks.
Are you referring to setting the list of users specified in the role? Or
changing the role of the current user?
To do the latter, you can set XDocument.Role = "whatever";
So far as the former question, one thing I've done is to create a secondary
data source with the various roles and the lists of users, then I point
InfoPath to those lists. Althought its not dynamic, it's more convenient
(though possibly a security issue) than hard-coding them in the Roles dialog
box.
--
Greg Collins [InfoPath MVP]
Please visit:
http://www.InfoPathDev.com
Can user roles be set from code or only through the InfoPath design-time
interface?