Important Notice for ReadyAPI Customers |
ReadyAPI has moved to SmartBear License Management and from October 2023, file-based licensing will be retired. As of September 2023, all licenses issued for your subscription term will be ID-based licenses by default. If you are not currently on ID-based licensing, it's time to migrate immediately. File-based licensing will no longer be supported as of October 2023. This means that technical support requests related to file-based licensing will not be accommodated. If you encounter technical issues that you're unable to resolve, it could lead to service interruption. For customers still in the process of migration, we recommend reaching out to your Account Manager to discuss your migration plan. Alternatively, you can log a support request with our Customer Care Team for assistance.
For more details regarding licensing support, please refer to this link.
You can manage the list of users having access to your floating license by editing the licenseUsers.xml
file on your Licensing Server. This file is located in the <Protection! Licensing Server installation>\conf
folder, for example C:\Program Files\ProtectionLS 4.9.0\conf.
Note: | Besides that you can use Licensing Server Management Console. |
This section describes how to add, remove, and edit data for license users by using this approach.
Lock changes
Before you start changing user permissions, create an empty licenseUsers.xml.lck file. It allows you to prevent simultaneous changes by several users and the data loss. The file lock will be automatically removed 1 minute after you have saved the changes made to licenseUsers.xml
. If it is not, delete the file manually.
File structure
The licenseUsers.xml file has the following elements:
Element | Description | ||
---|---|---|---|
|
The root element which includes all elements with user, group, and license data. |
||
|
A
|
||
|
A
|
||
|
A |
||
|
A |
||
|
A |
||
|
A |
||
|
A |
Add a user
To allow users to use a license, add them to the list of users:
-
Open
licenseUsers.xml
. -
Add the
user
element to thelicense_users
root element. It should have the following attributes:Attribute Value id
An integer associated with a user.
name
User name.
userName
User's system name.
This value is case-sensitive. host
User's computer name.
IPAddress
User's private IP address.
For example:
<user id="1" name="John Smith" userName="john.smith" host="localhost" IPAddress="192.168.1.108"/>
-
Save the file.
-
Restart the Licensing Server service to apply the changes.
Add a group of users
To assign a group of users to a license, create a group and add the users as group members:
-
Open
licenseUsers.xml
. -
To the
license_users
root element, add thegroup
element with the following attributes:For example:
<group id="1" name="Everyone" host="*" IPAddress="*.*.*.*"/>
-
To the
group
element, add themember
child element and enter theid
of the user you want to add to the group.For example:
<group id="1" name="Everyone" host="*" IPAddress="*.*.*.*">
<member id="1"/>
</group> -
Save the file.
-
To apply the changes, restart the Licensing Server service.
Assign a license to users
To allow a user to use a license:
-
Open
licenseUsers.xml
. -
To the
license
element, add thegrant_user
element with theid
attribute, whereid
is an id attribute of the user to which you want to assign the license.For example, the following line assigns a license to the user created above:
<grant_user id="1"/>
-
To apply changes, restart the Licensing Server service.
To allow the group of users to use a license:
-
Open
licenseUsers.xml
. -
To the
license
element, add thegrant_group
element with theid
attribute, whereid
is an id attribute of the group to which you want to assign the license.For example, the following line assigns a license to the group created above:
<grant_group id="1"/>
-
To apply changes, restart the Licensing Server service.
Delete a user or a group
To remove a user or a group, delete the corresponding element from the file and save the changes. For example, deleting the grant_user
element from the license
disallows the corresponding user to use a license. Deleting the user
element from license_users
removes the user from the list of users.
Example
Here is a sample content of the licenseUsers.xml file:
XML
<?xml version="1.0" encoding="UTF-8"?>
<license_users>
<!--A list of users allowed to use a license:-->
<user id="1" name="John Smith" userName="john.smith" host="localhost" IPAddress="192.168.1.108"/>
<user id="2" name="Mary Smith" userName="mary.smith" host="mhost" IPAddress="192.168.1.110"/>
<user id="3" name="Bill Taylor" userName="bill.taylor" host="billy" IPAddress="192.168.1.115"/>
<!--A list of groups of users allowed to use a license:-->
<group id="1" name="Everyone" host="*" IPAddress="*.*.*.*"/>
<group id="2" name="Administrators" host="Admin" IPAddress="192.168.1.107">
<!--A member of the Administrators group: Mary Smith and Bill Taylor.-->
<member id="2"/>
<member id="3"/>
</group>
<!--An installed license:-->
<license id="1">
<!--A group assigned to a license:-->
<grant_group id="1"/>
</license>
<license id="2">
<!--Users assigned to a license-->
<grant_user id="1"/>
<grant_user id="2"/>
</license>
</license_users>