Hello Experts,
I am trying to add a service account using HTTP (premium action) as Site Admin when a site get created.
This is the error that I am getting :
Http request failed as there is an error getting AD OAuth token: 'AADSTS500011: The resource principal named https://xxxx.sharepoint.com/sites/Test-NotMe was not found in the tenant named Contoso. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant. Trace ID: c3b65462-f2f8-4924-b1e2-a022385c2e00 Correlation ID: da96d86f-813b-443b-aca3-7ccd67f687b7 Timestamp: 2024-11-18 16:00:21Z'.
I am sure that using correct Site name, AD App ID , certificated (since I already getting SharePoint group info in an action above this) also the app app already have consent admin as well.
Any suggestion/advise please?