RE: Microsoft USD - Clear user settings on desktop ready unified service desk
Hello Faran,
Thank you for allowing me time to have the internal discussion.
Based on the feedback I received out of the box the option to implement your business requirement does not exist for the moment and it had not been included in the road map yet.
If you want to try to see if it can be included in the road map for future releases, I will kindly ask you to submit an idea on our ideas platform below:
experience.dynamics.com/.../
Additionally, based on my discussion with my colleague, we load the user settings at the USD start, you can try to verify this using the USD debugger just to confirm, which means, you can try to write a plugin on retrieve of the user settings, the entity name is msdyusd_usersettings which will be able to perform a delete operation on retrieve request, keep in mind you need to do this as pre-operation or something similar because post-operation will be done after the DB transaction.
If you want to develop a plugin on your side, I will kindly ask you to check in one test environment if everything works prior to deploying this in your production and also to make sure you have the proper conditions to handle null user settings for those users not having any user setting at the time of the plugin execution, in order to avoid unnecessary errors.
Thank you!