You cannot directly block the appearance of the "Switch User" button; if there are conditions that make him appear, he will appear. However, what you can do: prevent the conditions that lead to its occurrence.
This button appears when the tile is in the selected state, and 1.) your credential provider lists the tiles other than the one selected, or 2.) other credential providers list the tiles.
The first condition is easy to prevent: in GetCredentialCount () always inform that you will list only one accounting file. (This means, of course, that you must structure the tile to handle all users.)
To prevent the second condition, you will have to implement a credential provider filter. (Find the "ICredentialProviderFilter" interface if you don't know what it is.)
Good luck.
source share