Off Mesh Link - Limiting access to certain agents

In my game I have dynamically created Nav Mesh agents that wander around the map. There are doors on the map which I am using Off Mesh Links for. Is there a way I could have these off mesh links only accessible to certain agents. Is this possible? Do I need to use an Obstacle?

Any help is greatly appreciated.

@2-Zons
You can just set the navigation area of the Off Mesh links to some custom navigation areas (added in the Areas tab of the Navigation panel). Then use something like the following code to set the area mask of each agent that is allowed to travel through a gate.

using UnityEngine;

public enum Gate {Red=3, Green, Blue}

public class AgentAreaMaskExample : MonoBehaviour
{
    NavMeshAgent agent;
    void setGateAllowed(Gate gate, bool allowed)
    {
        if (allowed)
            // set bit on
            agent.areaMask |= 1 << (int)gate;
        else
            // set bit off
            agent.areaMask &= ~(1 << (int)gate);
    }

    void Start()
    {
        agent = GetComponent<NavMeshAgent>();
        setGateAllowed(Gate.Green, true);
    }
}

This worked just as described. One thing that I needed to be careful with was the doors are prefab’s and and the enter and exit tied to child game objects. The doors needed placed so that the enter and exit transforms are within a certain tolerance of the nav mesh surface. if placed too high they wont function properly. Thanks @CraigGraff