After the introduction of IBMid authentication by SoftLayer, we have confusion about how to manage users with VPN Only status (userStatusID = 1022)
The API service being used to create Customer Portal users is http://sldn.softlayer.com/reference/services/SoftLayer_User_Customer/createObject but noticed a new one named http://sldn.softlayer.com/reference/services/SoftLayer_User_Customer_OpenIdConnect/createObject
So wondering if SoftLayer_User_Customer_OpenIdConnect is replacing to SoftLayer_User_Customer or if one is for "Legacy" SoftLayer accounts still using the Customer Portal username+password schema vs IBMid authentication for new accounts.
Some testings using python shown that SoftLayer_User_Customer still works and that username needs to be specified as [email protected] in the API call as well as a password for the VPN user (even when documentation stated that 'Note, both password parameters are not used anymore')
...
def create_user(username,password,vpnPassword):
userinfo = {
'username': username,
'firstName': 'FIRSTNAME',
'lastName': 'USERNAME',
'email': '[email protected]',
'companyName': 'MyCompanyName',
'address1': 'MyAddress1',
'city': 'MyCity',
'country': 'MyCountry',
'postalCode': 'MyPostalCode',
'userStatusId': 1022,
'timezoneId': 117
}
created_user = client['SoftLayer_User_Customer'].createObject(
userinfo,
password,
vpnPassword)
return created_user
...
newUsername = '[email protected]'
vpn_password = '@VPN_4_pwd'
...
new_user = create_user(newUsername,password,vpn_password)
...
Looking if someone can provide clarification about what service to use and the correct way to create a VPN Only user now with IBMid use.
Thanks