Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.

Prevent users to join groups based on xprofile field value? #2

Open
BoweFrankema opened this issue Nov 24, 2014 · 1 comment
Open

Comments

@BoweFrankema
Copy link

Hi Mathieu,

I think this is a very interesting plugin to add alternative privacy to Groups, and it sits nicely in the middle of a private and a public group. I was wondering if this "new" group could have an additional feature which is an (group) admin option to allow only members with a certain xprofile field value to join. It could work something like this:

1: Site admin selects which fields are "available" to be used for "Group Access" right.

For example the site admin chooses "Your Position in our Company" which has the values:

  • Manager
  • Developer

2: On the "Control" tab the Group Admin now gets the following new option

"Enable access to members based on the profile field "Your Position in our Company"

[ ] All
[ x ] Manager
[ ] Developer

*currently you have allowed only Manager to join this group.

3: Displaying the Groups/Access Control message

There are a few possible ways this functionality could be implemented

  • Only the groups that the users has access to are shown (so basically show the ones where he/she has access too)
  • The "blocked" groups are still shown but a basic (customisable) message is shown on the group page "You are unable to join this group because it's meant for a Manager only.
  • Everything stays the same but as soon as a user presses the "Join Group" button the xProfile check is done and then the message is displayed (might be the easiest solution)

I'm not sure if this idea is doable or falls within the scope of the plugin, but I think it would be a neat feature and would also be extra awesome when it works together with the new upcoming "User Types" functionality!

@imath
Copy link
Owner

imath commented Sep 10, 2017

Hi,

I guess this could be done with Member types, but i wonder what's the benefit or it. This could be done by using a Public Group with membership request leaving the Group Admin decide whether the Member should be accepted or not.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants