Working with Domains
You add a domain to Junos Space Network Management Platform to assign users, devices, and other objects to that domain. You can add, modify, and delete a domain from the Role Based Access Control workspace only if you have the privileges of a Domain Administrator and are logged in to the Global domain. You cannot create domains if you are logged in or have switched to any other domain.
Adding a Domain
You add a domain when you want to create a logical grouping of objects and users. You add a domain from the Role Based Access Control workspace. Junos Space Platform allows you to add up to five levels of subdomains under the Global domain. When you add a domain, a subdomain is created under the domain that you select.
To add a domain:
Modifying a Domain
Only a user with the Domain Administrator role can modify a domain.
To modify a domain:
When you modify a domain, an audit log entry is generated.
Deleting Domains
Only a user with the Domain Administrator role can delete a domain.
Before you delete a domain, take the following points into consideration:
All users who are logged in to the domain must be logged out.
The domain is locked and users cannot move or log in to that domain unless the job fails.
No objects must belong to the domain that is being deleted. You need to purge and archive audit logs and job data as well as move or delete devices and all other objects in that domain to another domain before you proceed with the deletion. You must trigger the deletion of a domain only after you ensure that there are no objects in that domain. If objects exist in the domain, the deletion job fails and a list of objects to be deleted is provided in the job description.
Another administrator cannot create a domain with the same name as the domain that is being deleted until the domain deletion job is complete.
You cannot delete the Global domain.
You cannot delete a domain if the domain contains subdomains.
To delete a domain:
When the deletion of a domain fails, use the reasons listed in the job description of the domain deletion job to resolve the issue. Refer to the following example to view the reasons for the failure of a domain deletion job.
To view the reasons for the failure of a domain deletion job:
On the Junos Space Network Management Platform user interface, select Jobs > Job Management.
The Job Management page appears.
Double-click the domain deletion job whose details you want to view.
The Delete Domain Detail Report page appears. On this page, you see something similar to the following text in the Description column:
Delete or reassign following users before deleting domain: {test-user-1, test-user-2, }
3 Device Object object[s] present in domain. Please remove or assign to another domain before deleting.
162 Physical Interface Object object[s] present in domain. Please remove or assign to another domain before deleting.
80 Physical Inventory Object object[s] present in domain. Please remove or assign to another domain before deleting.
24 Logical Interface Object object[s] present in domain. Please remove or assign to another domain before deleting.
Analyze the report and resolve the issue. In this example, resolve point b in the previous step, which is likely to address points c, d, and e because points c, d, and e are related to the devices in point b.
You may encounter this error if a device is assigned to the domain being deleted and you are trying to delete that domain. To resolve this error, identify the devices that are assigned to this domain from the Domains workspace and reassign the devices to another domain. For example, assume that one of the devices assigned to the domain that you are trying to delete is DeviceA.
To reassign DeviceA to the Global domain:
On the Junos Space Network Management Platform user interface, select Devices > Device Management.
The Device Management page appears.
Select DeviceA.
Click Assign to Domain from the Actions menu.
The Assign to Domain page appears, displaying all domains on the Junos Space server.
Click Global.
Click Assign.
The selected device is reassigned to the Global domain.
Resolve point a, which states:
Delete or reassign following users before deleting domain: {test-user-1, test-user-2, }
You may encounter this error if a user is attached to only a single domain and you are trying to delete that domain. Identify the users assigned to this domain from the Domains workspace and reassign the users to another domain. In this example, reassign test-user-1 to the Global domain.
To reassign test-user-1 to the Global domain:
On the Junos Space Network Management Platform user interface, select Role Based Access Control > User Accounts.
The User Accounts page appears.
Select test-user-1.
Click the Modify User icon.
The Modify User page appears.
Click Domain Assignment on the right pane of the Modify User page.
Select the Global check box.
Click Finish.
The selected user is reassigned to the Global domain.
Repeat this procedure for test-user-2.
Try deleting the domain now. You should be able to delete the domain because you have resolved the issues that were preventing you from deleting the domain.
When you delete a domain, an audit log entry is automatically generated.
If you cannot delete a domain because there are jobs and audit logs associated with that domain, switch to the domain that contains the audit logs and jobs and purge them.
Switching from One Domain to Another
If you are a user who has access to multiple domains, then you can navigate from one domain to another by using the Domain drop-down list displayed at the top center of the Junos Space user interface.
If you access the Junos Space Platform UI in two tabs of the same browser with two different domains selected and access the same page in both tabs, the information displayed on the page is based on the latest domain selected. To view pages that are accessible only in the Global domain, ensure that you are in the Global domain in the most recent tab in which you are accessing the UI.