Repository navigation
Only Import users defined in some rule. #326
|
Hello again =) I've created a rule to limit the number of users who can login to my app, works pretty well. But now I would like to only import users inside that rule while using My rule is something like:
Is it possible to achieve that? |
Replies: 2 comments 4 replies
|
Hi @luis-gmonkey, You will have to create a scope that you apply to your LDAP user model to limit the users whom are retrieved by the import. If you're using one of the built-in models, simply generate a new LdapRecord model, and extend the built-in one you were previously using. |
|
Hi together, i am currently searching the same but i want to limit the repository by the same rule for login. So my database is not exploding from not used users by AD. Is there a way i can implement this? Probably this is just not visible to me how to do that by scopes. The behaviour should be to limit the import to the users which are in a group. Currently i am doing this by the rule: Thank you in advance |
Hi @luis-gmonkey,
You will have to create a scope that you apply to your LDAP user model to limit the users whom are retrieved by the import.
If you're using one of the built-in models, simply generate a new LdapRecord model, and extend the built-in one you were previously using.