Display or Hide tile based on user role

Just curious if others have dealt with this issue, and whether any good solutions have been found.


We have some SKY Add-ins that are very useful for a small group of our staff, but not applicable to everyone else. We'd like to be able to set it so that only the small group of people who use these tiles will see them, and they will be hidden for everyone else.


My understanding is that the only way to do this is to use the User Identity Token to determine which user is accessing the record, and white-list the users who need to see the tile. Managing a white-list is a bit of a pain, and the process of validating a User Identity Token takes what was a quick and simple Add-in and increases the level of complexity significantly - especially for someone like me without much experience with these development environments.


Do you have tiles that are hidden or displayed based on user, or user role? What solutions do you use?

Comments

  • Hi Ben,

    Sorry we missed responding to this post! At the moment, managing an allow-list of user IDs (or interrogating an external system to determine the role membership for the current user) is the only way to accomplish this type of selective visibility. This is a common request that we've heard from a number of developers, so we'll be discussing how we might provide a more elegant solution for this in the future. Thanks for the feedback!

  • We are using a local data warehouse where we store user's permissions. Then based on User Identity Token provided by the NXT, we send the request to the data warehouse to check if that user has access to the specific tile, and only if they do, we proceed to displaying the tile.