-
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) |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
@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
from
keyword and the date format is slightly different from the ISO format usually used, as shown in the upstream link above.