Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new actions to the script privacyidea-user-action #1956

Open
cornelinux opened this issue Dec 9, 2019 · 1 comment
Open

Add new actions to the script privacyidea-user-action #1956

cornelinux opened this issue Dec 9, 2019 · 1 comment

Comments

@cornelinux
Copy link
Member

@cornelinux cornelinux commented Dec 9, 2019

Is your feature request related to a problem? Please describe.
Sometimes actions need to be performed based on the users.
This is very different to the token-janitor, which first takes a look into the token table.
One task as example would be to enroll a token for all users, who currently have no token assigned.

Describe the solution you'd like
We should have a script, that can somehow iterate through the existing users.
The problem is, that this script must query the complete defined resolvers.

Describe alternatives you've considered
Hm. None.

Additional context
Fetching the users with the certain condition may be more perfomant when using the lib level and not the API level.
Currently for a lot of enrollment scenrios it is interesting, which users do not have a token, yet.

@cornelinux cornelinux added this to the 3.3 milestone Dec 9, 2019
@cornelinux cornelinux added this to To do in privacyIDEA 3.3 via automation Dec 12, 2019
@cornelinux cornelinux moved this from To do to In progress in privacyIDEA 3.3 Dec 12, 2019
@cornelinux cornelinux moved this from In progress to Review in progress in privacyIDEA 3.3 Dec 12, 2019
@cornelinux cornelinux self-assigned this Dec 16, 2019
@cornelinux

This comment has been minimized.

Copy link
Member Author

@cornelinux cornelinux commented Jan 25, 2020

Currently I am not sure, what other tasks should be run for the user.
We have the script privacyidea-user-action which enrolls a token for the user.
Other actions can be (easily) added.

  • enroll token for user
  • ... for user
  • ... for user

I am removing this from milestone 3.3. But Other actions can be later.

@cornelinux cornelinux removed this from the 3.3 milestone Jan 25, 2020
@cornelinux cornelinux moved this from Review in progress to Done in privacyIDEA 3.3 Jan 25, 2020
@cornelinux cornelinux removed this from Done in privacyIDEA 3.3 Jan 25, 2020
@cornelinux cornelinux changed the title Provide a script, that can run tasks for users Provide a script, that can run arbitrary tasks for users Jan 25, 2020
@cornelinux cornelinux changed the title Provide a script, that can run arbitrary tasks for users Add new actions to the script privacyidea-user-action Jan 25, 2020
@cornelinux cornelinux removed their assignment Jan 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.