The exercise has two parts, A and B.
A is simple, it requires to check the modules that each user makes use of and return an object with the following format. This part is solved.
{
'auth_module': {
'authn.provider_1': ['./u1.json', './u2.json']
'authn.provider_2': ['./u3.json', './u4.json', './u5.json']
},
'content_module': {
'authz.provider_1': ['./u1.json', './u3.json'],
'authz.provider_2': ['./u2.json', './u4.json'],
'authz.provider_3': ['./u5.json']
}
}
Now, in part B I need help to solve this:
"Determine a group of users (taken from part A) that together use all the available modules"
The example output is in this format:
['./u1.json', './u4.json', './u5.json']
I genuinely have no clue on how to solve this, so any kind of help will be really appreciated.