What access do I have?

If you are using Optional Access in your HealthVault authorization rules, then at times you may want to know whether a particular user has authorized an optional piece of the data type access.  You can find out what actions are currently authorized for a {user, record, app} by calling PersonInfo.SelectedRecord.QueryPermissions.  You can read more about this method at https://msdn.microsoft.com/en-us/library/microsoft.health.healthrecordinfo.querypermissions.aspx.  You can also use a similar method, QueryPermissionsByType, https://msdn.microsoft.com/en-us/library/microsoft.health.healthrecordaccessor.querypermissionsbytypes.aspx.

HealthVault does *not* allow an application to ask what access a particular user has to a particular record, but it can ask what that user has authorized for use in this application.

I hope that clears things up a little.