Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'GraphServiceClient' does not contain a definition for 'DeviceLocalCredentials' #2707

Closed
bau11977 opened this issue Oct 14, 2024 · 1 comment
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience

Comments

@bau11977
Copy link

Describe the bug

Microsoft.Graph.Beta.GraphServiceClient contains "DeviceLocalCredentials" but Microsoft.Graph.GraphServiceClient does not although it should be available in MS Graph v1.

https://learn.microsoft.com/en-us/graph/api/devicelocalcredentialinfo-get?view=graph-rest-1.0

Expected behavior

DeviceLocalCredentials should be available in Microsoft.Graph (v1) SDK

How to reproduce

Microsoft.Graph.Models.DeviceLocalCredentialInfo? cred = await graphClient.DeviceLocalCredentials[device.DeviceId].GetAsync(requestConfiguration => { requestConfiguration.QueryParameters.Select = ["credentials"]; });

SDK Version

5.60.0

Latest version known to work for scenario above?

No response

Known Workarounds

Using Beta SDK instead:

Microsoft.Graph.Beta.Models.DeviceLocalCredentialInfo? cred = await graphClientBeta.DeviceLocalCredentials[device.DeviceId].GetAsync(requestConfiguration => { requestConfiguration.QueryParameters.Select = ["credentials"]; });

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_
@bau11977 bau11977 added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Oct 14, 2024
@bau11977
Copy link
Author

Found it, DeviceLocalCredentials moved to Directory namespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

1 participant