Hi Stefan,
thanks for responding. I am having owner rights.
I don't see message tracking role in "https://protection.office.com/permissions", do I need to give the role from anyother place? I tried the command you mentioned as well.
when I run following command-
$RoleGroup = New-RoleGroup -Name "Message Trace Reporting" -Roles "Message Tracking", "View-Only Audit Logs", "View-Only Configuration", "View-Only Recipients" -Members $UserName
received error as,
New-RoleGroup : The term 'New-RoleGroup' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:14
+ $RoleGroup = New-RoleGroup -Name "New Message Trace Reporting" -Roles ...
+ ~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (New-RoleGroup:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
so for time being, I am trying my account instead of service account.
once the HTTPS output is available I am trying to parse json and following schema comes by uploading output. but when I run it, it gives error
"ValidationFailed. The schema validation failed."
could you please share what schema you used?
schema after uploading output from http body.
{
"type": "object",
"properties": {
"odata.metadata": {
"type": "string"
},
"value": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Organization": {
"type": "string"
},
"MessageId": {
"type": "string"
},
"Received": {
"type": "string"
},
"SenderAddress": {
"type": "string"
},
"RecipientAddress": {
"type": "string"
},
"Subject": {
"type": "string"
},
"Status": {
"type": "string"
},
"ToIP": {},
"FromIP": {
"type": "string"
},
"Size": {
"type": "integer"
},
"MessageTraceId": {
"type": "string"
},
"StartDate": {
"type": "string"
},
"EndDate": {
"type": "string"
},
"Index": {
"type": "integer"
}
},
"required": [
"Organization",
"MessageId",
"Received",
"SenderAddress",
"RecipientAddress",
"Subject",
"Status",
"ToIP",
"FromIP",
"Size",
"MessageTraceId",
"StartDate",
"EndDate",
"Index"
]
}
}
}
}
thanks,
mahesh