Skip to content

Give a contractor temporary access

This guide gives an external technician access to a destination for a limited time. Two ways: just-in-time access, where the contractor asks, an approver decides and the access ends by itself, and a time-condition policy, a fixed window without approval. Background: Just-in-Time Access.

In short

For access that someone must approve each time, create a policy with Requires approval, an approver group and a Longest approval. For a fixed window, add a Time condition to an ordinary policy.

Before you start

  • The contractor needs a user in your tenant (a guest or a user at your identity provider) and the app, in Client mode.
  • The destination exists as an Asset, Virtual Asset, Subnet, Machine Group or Portal. See Reach a server.
  • Two user groups: one for the people who may ask (for example Technicians) and one for the people who decide (for example Service Owners). All Users cannot be the approver group.
  • Approvers who also request access need another approver to decide: an approver group whose members ask for access needs at least two people.

Option A: just-in-time access with approval

1. Create the user groups

Create Technicians and Service Owners (imported from your identity provider or local). See Definitions. Add the contractor to Technicians.

2. Create the policy

  1. Open Policies and choose Create.
  2. On the Access tab, select Technicians under Sources and the destinations the contractor may ask for under Destinations.
  3. On the Advanced tab, in the section Just-in-time access, switch on Requires approval.
  4. Choose the Approver groups, for example Service Owners.
  5. Choose the Longest approval: a duration from 30 minutes to 7 days, or Custom with 5 to 10080 minutes. It has no default and the policy cannot be saved without it.
  6. Choose Apply.

The policy list marks it with an Approval badge. Conditions you set, for example an operating system or allowed countries, apply to the access once granted. Time conditions limit the approval to the time inside them.

The fields, including Allow recurring requests, are in Advanced tab.

3. Check for other policies

If another policy already gives the same people access to the same destination without approval, the policy shows a warning: that access stays, and a request would add nothing. Narrow or remove the other policy.

4. Set the time zone and the report (optional)

Under Account → Settings on the General tab, set the Time zone used in emails, and check Access report email, who gets the report after the access ends. See Settings.

5. The contractor requests, the approver decides

The contractor asks on the self-service page My access and the approver decides there or in the app. Both need no administrator rights.

  • Contractor: My access, tab Request access: choose the Destination, the window and a Reason.
  • Approver: Access requests and My access, tab To decide. Nobody decides their own request.
  • Administrators see all requests under Access requests in the Admin Console.

Option B: a time condition without approval

Use this when the window is known in advance and nobody needs to approve it.

  1. Create a policy with the contractor's user group as Sources and the destination, as in Reach a server.
  2. On the Conditions tab, open the sub-tab Time. Under Non-recurring Time Windows choose Add, set Set From and Set To, and Save. For a weekly pattern use Recurring Time Windows with weekdays, a start and end time and a time zone.
  3. Choose Apply.

Outside the window the policy does not apply. Remove the contractor from the group or disable the policy when the job is done.

Verify

  1. Option A: sign in to My access as the contractor. The destination shows Can be requested. Send a request and, as approver, approve it. The request status goes from Pending to Approved and Active.
  2. The contractor turns the app on and opens the destination. See My Access.
  3. After the end time the access is gone: tunnel connections are removed within about a minute.
  4. Option B: during the window the destination is listed in the app; outside it, it is not.

If it doesn't work

  • The contractor sees "No policy lets you request access". The contractor or their group is not in the policy's Sources, or the policy is disabled.
  • Nobody receives the request email. Members of the approver group get it; the requester does not.
  • The request stays pending. If nobody decides before the requested time ends, it is cancelled with Nobody decided before the requested time ended, and the contractor can ask again.
  • Access ended earlier than expected. It ends when the policy is deleted, disabled, loses Requires approval, loses the destination or when its Conditions change.
  • The approver cannot decide. Only members of the approver group decide, administrators included, and never their own request.

Next

See also