You are modifying a web application so that it uses Azure Active Directory to manage users. You create a
security group named Users and a security group named Administrators. The Administrators security group is a
member of the Users security group.
You create the following code segment. Line numbers are included for reference only.
You need to implement the canAccessUserResources function.
Which code segment should you insert at line 02?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
I think it should be ‘D’
I think B is correct, see https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/functions-and-actions#ismemberof
isMemberOf is transitive, meaning it also looks in nested groups. Options A and D only look for direct membership of the ‘Users’ group.
C tries to look up the ‘User’ group which doesn’t exist