get inactive users
#2300
|
hello, how do I get users who have been inactive since x months or so. import gitlab
gl = gitlab.Gitlab(url=url, private_token=token)
r = gl.user_activities.list(query_parameters={'from': '2022-10-07'}, get_all=True) |
Answered by
nejch
Oct 8, 2022
Replies: 1 comment 2 replies
|
@botkero I thought you had this figured out already but I see you've edited your question. Just to make sure for future readers, your example should work, provided that you have an admin token. The query_parameters are needed due to the collision with python's |
2 replies
Answer selected by
botkero
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@botkero I thought you had this figured out already but I see you've edited your question.
Just to make sure for future readers, your example should work, provided that you have an admin token. The query_parameters are needed due to the collision with python's
fromkeyword and the date format is slightly different from the ISO format usually used, as shown in the upstream link above.