Check a Subject's Access
In the prior step we granted "subject1" the "member" relation to the "group1" object in the "groups" namespace, if we do an access Check we should get an allowed response.
You can see that the response matches this expectation { "allowed" : true }
.
Now let's remove the relation...
Verify "subject1" is no longer a member of "group1".
And now you get an empty response { }
, which indicates that allowed
is false.
For more information on the API endpoint take a look at the API Reference.