-
Notifications
You must be signed in to change notification settings - Fork 117
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
Workaroud for SAML ListUserAccounts limit #287
base: master
Are you sure you want to change the base?
Conversation
@@ -52,7 +52,21 @@ func dataSourceYandexOrganizationManagerSamlFederationUserAccountRead(d *schema. | |||
return err | |||
} | |||
|
|||
for _, account := range resp.UserAccounts { | |||
UserAccounts := resp.UserAccounts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А для чего здесь делается вызов метода ListUserAccounts
?
Метод AddUserAccounts
возвращает операцию, в поле result
у которой и так будет список пользователей.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
В том то и дело, что в таком виде он тут бесполезен.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Спасибо за коммент, обновил, теперь Id забирается из результата операции.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я не очень правильно выразился.
Здесь для резолва пользователя (проверки того, что он есть в федерации) используется addUser операция. Это не очень корректно, но что уж поделать, убирать это не стоит, чтобы сохранить обратную совместимость. Однако из-за использования этой операции пользователем с доступом только на просмотр аккаунтов, а не создание, вообще не может пользовать ресурсом.
Предлагаю сначала при помощи операции листинга проверять наличие аккаунта и резолвить его, если найдем. Если не нашли - тогда уже добавляем.
@kargaily доброго времени суток, столкнулись с проблемой |
Надо спрашивать у мейнтейнеров, вообще они выкатили фикс в прод, свой, в 0.81 работает норм, можно не указывать length. |
@kargaily спасибо за быстрый ответ! увидела в ченджлоге, что фикс выкачен, но почему-то не работает у меня. жаль, буду копаться |
Добрый вечер, а можете подробнее рассказать про проблему? Какую версию тф используете? |
Здесь еще планируется какое-то движение или проблема ушла? |
Обход ограничения в 100 пользователей для data.yandex_organizationmanager_saml_federation_user_account ресурса.
fix #286