I'm trying to get list of users who has access to softlayer portal.
but i'm getting below error
users = client.getUsers()
AttributeError: 'BaseClient' object has no attribute 'getUsers'
this is my python code
#!/usr/bin/python
import SoftLayer.API
import sys
import os
api_username = 'user'
api_key = 'key'
client = SoftLayer.create_client_from_env(username=api_username
api_key=api_key )
users = client.getUsers()
for user in users:
print ("id: " + str(user['id']) + " userName: " + user['username'])
How do i retrieve user id's (like active users)