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

Cannot add >4 AWS roles to a user #3

Open
nonspecialist opened this issue Jul 22, 2016 · 1 comment
Open

Cannot add >4 AWS roles to a user #3

nonspecialist opened this issue Jul 22, 2016 · 1 comment
Labels

Comments

@nonspecialist
Copy link
Contributor

When attempting to add a fifth AWS role to a user, the tool crashes with a backtrace similar to:

$ federator user -U [email protected] add -R arn:aws:iam::123456789012:role/FederatedAdministrator -P arn:aws:iam::123456789012:saml-provider/GoogleApps

Traceback (most recent call last):
  File "/home/user/.local/bin/federator", line 9, in <module>
    load_entry_point('google-aws-federator==0.0.1', 'console_scripts', 'federator')()
  File "/home/user/.local/lib/python2.7/site-packages/federator/__init__.py", line 130, in main
    args.func(args)
  File "/home/user/.local/lib/python2.7/site-packages/federator/__init__.py", line 51, in user_add
    added = user.add_role(roleArn=args['rolearn'], providerArn=args['providerarn'])
  File "/home/user/.local/lib/python2.7/site-packages/federator/federator.py", line 157, in add_role
    response = request.execute()
  File "/usr/lib/python2.7/site-packages/oauth2client/util.py", line 135, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/googleapiclient/http.py", line 832, in execute
    raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 413 when requesting https://www.googleapis.com/admin/directory/v1/users/user%40example.com?alt=json returned "Profile quota is exceeded.: Data is too large for">
@s0enke
Copy link

s0enke commented Mar 28, 2017

It seems that this issue is actually a limit in the Google API: http://stackoverflow.com/questions/38024817/maximum-size-of-patch-to-customschemas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants