I have multiple queries relating to application design. based on what i read from
I need Application permissions to manage my client's o365. such as 'Exchange.ManageAsApp' and other permissions on client's request.
but other than that I would also need to assign the service principal created in client's tenant to a Exchange Administrator role or even Help Desk administrator role. for that I would need temporary elevated privileges. this makes the consent screen stack up with many permissions.
what would be the best way to approach such scenario?
after consent, I can confirm if user has accepted permissions at redirect uri endpoint, how do i handle if in future, enough permissions to perform admin level tasks are still available or user just deleted the service principal, or revoked the SP permissions?
is it a good idea to separate tenant on-boarding to one AD application and create a separate AD application for each service (Exchange level, later user management, and other service in future) I provide? and generate admin consent for each service client opted.
I am unable to request Application SCOPES other than Graph API dynamically. I had to go with ".default" scope that requests all static permissions at once which floods the consent screen.