Trying to show the custom attributes (mainly the location field ) for some public GitLab users. but it's not working
I am using python gitlab library to get the list. and I can print the user names, ids and url. Now I want to access the custom attributes such as the location but it doesn't work with me! I am trying the following from the browser its not working (example: username =gitlab)
https://gitlab.com/api/v4/users?username=gitlab&private_token=mytoken
# this brings the users list
import gitlab
gl = gitlab.Gitlab('http://gitlab.com', private_token='mytoken')
users = gl.users.list()
for u in users:
print (u.name)
print (u.id)
print (u.web_url)