Posting the Answer for better knowledge
Copying from comments
It's not possible to get Tenant configuration details. To get list of students in class you can use List members request using graph API.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Some background, our application need to retrieve list of students per class, and in the tenants of this subject, we can’t receive student details, but just the number of students with “null” details.
An MOE would like to enhance their experience and explain to the users why they can’t see students details. For that, we will require a specific query to Graph to understand if the tenant uses “privacy” configuration.
Posting the Answer for better knowledge
Copying from comments
It's not possible to get Tenant configuration details. To get list of students in class you can use List members request using graph API.