From 7e1caeee6ae30acb0ad9449db18818a4e4fcd983 Mon Sep 17 00:00:00 2001 From: Moritz Date: Wed, 21 Aug 2024 22:39:33 +0200 Subject: [PATCH] abra.sh: add get_user_uid() command --- abra.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/abra.sh b/abra.sh index 6b2a0ba..e69a363 100644 --- a/abra.sh +++ b/abra.sh @@ -243,3 +243,9 @@ cert = saml.signing_kp print(''.join(cert.certificate_data.splitlines()[1:-1])) """ 2>&1 | quieten } + +get_user_uid() { +/manage.py shell -c """ +print(User.objects.filter(username='$1').first().uid) +""" 2>&1 | quieten +}