@MarileeTurscak i have created new user in that tenant and able to get accesstoken,thank u for the solution
Certification not found and WsTrust endpoint not found in metadata document issues while using MSAL4j to acquire token - MSgraph API
i am trying to get access token using UserNamePasswordParameters it gives error:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
but i had added certificates from below to jre:
to bypass this certificate issue i had written java code that trust all certificates,now certificate issues is resolved eventhough i am getting error like :
com.microsoft.aad.adal4j.AuthenticationException: WsTrust endpoint not found in metadata document
i had searched in internet for this ws trust issue it has been mentioned to use admin credientials ,i am using same as well.
but i was able to get accesstoken using clientcredentials there was no error in that