Azure / logicapps

Azure Logic Apps labs, samples, and tools
MIT License
348 stars 291 forks source link

HTTP action on Graph API doesn't return Lifecycle attributes #1077

Open o-evin opened 4 weeks ago

o-evin commented 4 weeks ago

Describe the Bug with repro steps

  1. Call Invoke-MgGraphRequest and ensure employeeLeaveDateTime and employeeHireDate are set
Invoke-MgGraphRequest -Uri "https://graph.microsoft.com/beta/users?`$filter=userPrincipalName=<account with EmployeeLeaveDateTime set>&`$select=UserPrincipalName,EmployeeHireDate,EmployeeLeaveDateTime
    {
        "employeeHireDate": "2024-12-30T16:00:00Z",
        "employeeLeaveDateTime": "2024-12-30T16:00:00Z",
        "userPrincipalName": "<account with EmployeeLeaveDateTime set>"
    }
  1. Call the same rest point with Logic App HTTP action and receive null values for employeeHireDate and employeeLeaveDateTime
    {
        "employeeHireDate": null,
        "employeeLeaveDateTime": null,
        "userPrincipalName": "<account with EmployeeLeaveDateTime set>"
    }

What type of Logic App Is this happening in?

Consumption (Portal)

Are you using new designer or old designer

New Designer

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

"HTTP_-_Get_Entra_users": {
                "inputs": {
                    "authentication": {
                        "audience": "https://graph.microsoft.com",
                        "identity": "/subscriptions/XXXX",
                        "type": "ManagedServiceIdentity"
                    },
                    "headers": {
                        "ConsistencyLevel": "eventual"
                    },
                    "method": "GET",
                    "queries": {
                        "$count": "true",
                        "$filter": "onPremisesSyncEnabled eq true and (EmployeeType eq 'Employee' or EmployeeType eq 'Intern' or EmployeeType eq 'Contractor')",
                        "$select": "Id,GivenName,Surname,DisplayName,UserPrincipalName,EmployeeHireDate,EmployeeLeaveDateTime,MobilePhone,JobTitle,Department,UsageLocation,EmployeeType,Manager,UserType,accountEnabled"
                    },
                    "uri": "https://graph.microsoft.com/beta/users"
                },
                "runAfter": {
                    "XXX": [
                        "Succeeded"
                    ]
                },
                "runtimeConfiguration": {
                    "contentTransfer": {
                        "transferMode": "Chunked"
                    },
                    "paginationPolicy": {
                        "minimumItemCount": 999
                    }
                },
                "type": "Http"
            },

Screenshots or Videos

No response

Browser

Edge

Additional context

No response