Skip to main content

Hide ability to invite all channel users to view asset

  • November 6, 2023
  • 4 replies
  • 110 views

andym
Novice I

Like a few others here, I’ve been concerned about the ability of users to invite an entire channel’s user base to view an asset, but seem to have found a CSS fix.

Problem

I’ve altered our language pack to remove any reference to inviting a channel, but the search box still returns channel results, e.g. if searching for someone called ‘Sofia’, typing ‘sof’ will autocomplete to our global ‘Soft Skills’ channels with thousands of users…

BEFORE

 

Solution

 

/* AM - Prevent invitations to all channel users */
.inviting-search-multiselect .text-basic-size:has(.additional-info){
display: none!important;
}
  • .inviting-search-multiselect being the search bar on the Invite pop-out
  • .text-basic-size being the individual search results
  • :has specifying only search results which also include the number of channel users (.additional-info)

This results in users still being selectable, but channels not!

 

AFTER

 

4 replies

AnneG
Contributor II
  • Contributor II
  • November 6, 2023

Amazing! Thank you! Mind if I ask what you localized the language to be? I just removed all text and replaced it with a space, but I am not sure if you have a better option.


andym
Novice I
  • Author
  • Novice I
  • November 6, 2023

Sure! I wanted users to still invite other users, just to remove any temptation to invite an entire channel. So...

  • Invite to watch > Invite to view (you don’t ‘watch’ formats like documents / links 😂)
  • Search for users or channels to invite > Search for users to invite
  • User or channel name > User name

The CSS above was just the final fix to remove any ability to still invite an entire channel by mistake.


AnneG
Contributor II
  • Contributor II
  • November 6, 2023

Thank you again!


Jessica Tart
Helper II
Forum|alt.badge.img+4
  • Helper II
  • September 3, 2025

@andym Thank you for sharing this solution! The CSS prevents users from typing in and selecting a channel. However, they are still able to select the channel the asset is in and invite all users in that channel under the ‘Users from Channels’ area at the bottom (see screenshot). 

 

Have you figured out a way to prevent this by chance?