Description
Assigns an SAP Business One license to a user, or removes a license from a user.
Syntax
Parameters
Example
| Assign a license to a user (Visual Basic) | Copy Code |
|---|
Try
Dim oCompanyService As SAPbobsCOM.CompanyService
oCompanyService = oCompany.GetCompanyService
Dim oUserLicenseParam As SAPbobsCOM.UserLicenseParams
oUserLicenseParam = oCompanyService.GetDataInterface(SAPbobsCOM.CompanyServiceDataInterfaces.csdiUserLicenseParams)
oUserLicenseParam.UserName = "manager"
oUserLicenseParam.LicenseKeyType = SAPbobsCOM.LicenseKeyTypeEnum.lktdIdirect
oUserLicenseParam.LicenseUpdateType = SAPbobsCOM.LicenseUpdateTypeEnum.ultAssign
oCompanyService.UpdateUserLicense(oUserLicenseParam)
Catch ex As Exception
MsgBox(ex.ToString)
End Try |
|
See Also