I have a SPFx webpart which is a form for users to submit requests which will run the group and teams provisioning code.
The code works fine when the user is logged in as a 'Global Admin', but when a normal user with minimum permission levels uses the form, the provisioning is not allowed and is faced with these errors:
Creating group is not allowed:
Creating teams is not allowed:
Is there a way to run the code regardless of the user context? or any ways to elevate the privilege of the webpart or block of code?