Skip to content
Snippets Groups Projects
Commit c31673b4 authored by Jose Raul Barreras's avatar Jose Raul Barreras
Browse files

Add new file

parents
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
import gitlab
from datetime import datetime
TOKEN = 'AdsL3uQzEfi5xuSspJqj'
gl = gitlab.Gitlab('https://git.unl.edu', TOKEN , api_version=4)
users = gl.users.list(all=True)
print(gl)
for user in users:
if user.last_sign_in_at:
delta = datetime.now() - datetime.strptime( user.last_sign_in_at, "%Y-%m-%dT%H:%M:%S.%fZ" )
if delta.days/365.25 < 1:
print(user.email, user.name)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment