skip to Main Content

Azure Graph API – Users by CreatedDateTime

I am trying to retrieve users orderby createdDateTime, but the Graph API doesn't seem to like it This fails with a (400) Bad Request: https://graph.microsoft.com/beta/users?`$select=displayName,userPrincipalName,mail,id,createdDateTime,signInActivity,userType&`$top=100&`$orderby=createdDateTime desc Whereas order by displayName works just fine: https://graph.microsoft.com/beta/users?`$select=displayName,userPrincipalName,mail,id,createdDateTime,signInActivity,userType&`$top=100&`$orderby=displayName desc My API permissions are fine…

VIEW QUESTION

Azure – get-policy state not returning correct display name instead returning guid

' subscriptionId = 'abc' $nonCompliantPolicies = Get-AzPolicyState -SubscriptionId $subscriptionId # Define a custom object for each non-compliant resource $customObjects = $nonCompliantPolicies | ForEach-Object { [PSCustomObject]@{ PolicyName = $_.PolicyDefinitionName ComplianceState = $_.ComplianceState ResourceType = $_.ResourceType ResourceGroup = $_.ResourceGroup SubscriptionId = $_.…

VIEW QUESTION
Back To Top
Search