I am using following URL to get the Auth Token with user information
https://login.microsoftonline.com/:tenant_id/oauth2/token
tenant_id:TENANT-GUID
grant_type:password
client_id:CLIENT-GUID
client_secret:CLIENT-SECRET
resource:RESOURCE-ID
username:username
password:password
But getting following error:
AADSTS50034: To sign into this application the account must be added to the {TENANT-GUID} directory
Please advice.