SDK version: msgraph-sdk-python v1.26.0
\nPython version: 3.12.9
Anyway too much time to answer, found a workaround using requests and not the trash SDK !
","upvoteCount":2,"url":"https://github.com/microsoftgraph/msgraph-sdk-python/discussions/1185#discussioncomment-12907659"}}}-
|
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.
-
|
Anyway too much time to answer, found a workaround using requests and not the trash SDK ! |
Beta Was this translation helpful? Give feedback.
Anyway too much time to answer, found a workaround using requests and not the trash SDK !