Hi Maksym Kryvonis,
Thank you for contacting Microsoft Support!
Unfortunately, dynamic distribution lists are currently not supported via Graph API. Only the following groups are supported:
- Microsoft 365 groups
- Security groups
- Mail-enabled security groups
- Distribution groups
For more details, please refer to: Working with groups in Microsoft Graph
Since this feature/functionality is presently not available, you can submit a feature request idea using support link, which will be monitored by Microsoft team and make the enhancements to Microsoft Graph APIs.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.