-
Hey, I don't know if this is a bug, or a misunderstanding from me, but I have been struggling with this. BugWhen creating a secret for an Azure AD app using add_password.post() and a PasswordCredential object, fields such as displayName, startDateTime, and endDateTime are silently ignored. The resulting secret is created with an empty name and a default expiration of 2 years. Steps to reproducefrom msgraph.generated.models import PasswordCredential
now = datetime.datetime.now(datetime.timezone.utc)
end = now + datetime.timedelta(days=365)
cred = PasswordCredential(
display_name="Secret Test 2025",
start_date_time=now,
end_date_time=end
)
await client.applications.by_application_id(app_id).add_password.post(cred) Expected behavior
Actual behavior
SDK version: msgraph-sdk-python v1.26.0 |
Beta Was this translation helpful? Give feedback.
Answered by
Stantrh
Apr 22, 2025
Replies: 1 comment
-
Anyway too much time to answer, found a workaround using requests and not the trash SDK ! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Stantrh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Anyway too much time to answer, found a workaround using requests and not the trash SDK !