I have a requirement to block users from accessing SSRS at certain times of the day (during overnight processing) but need SSRS to be running in the normal way since overnight processing includes running subscriptions.
I had a thought to create custom roles for these users and at the relevant time of day call the "SetRoleProperties" procedure for this purpose. However, that doesn't make the changes take effect! Looking at a profiler trace when using SSMS and unticking the options in the GUI (which does work) I also see a call to "UpdatePolicy" which I assume applies the values which have been made. However I can't find a way to build the parameters for this stored procedure.
Has anyone found a way to programmatically update the permissions assigned to a role in SSRS?