Git Product home page Git Product logo

Comments (20)

JoshSanchezG avatar JoshSanchezG commented on May 4, 2024 2

Hello,

Was anybody able to fix this issue? Thanks and regards!

from loaner.

Sasho11 avatar Sasho11 commented on May 4, 2024

This usually means that the proper permission was not assigned in order for the directory api to manage users in your domain. Please make sure that you've done all of the steps in step 2 of https://github.com/google/loaner/blob/master/docs/setup_guide.md and double check that the correct scopes have been added for step 2v.

from loaner.

BennyBoo85 avatar BennyBoo85 commented on May 4, 2024

@antoine-castex did you get this resolved yet? I'm running into the same issue and double checked my work.

from loaner.

antoine-castex avatar antoine-castex commented on May 4, 2024

This usually means that the proper permission was not assigned in order for the directory api to manage users in your domain. Please make sure that you've done all of the steps in step 2 of https://github.com/google/loaner/blob/master/docs/setup_guide.md and double check that the correct scopes have been added for step 2v.

I have check with my team

the scope are

admin.directory.device.chromeos
admin.directory.group.member.readonly
admin.directory.orgunit
admin.directory.user.readonly

is that good ?

from loaner.

antoine-castex avatar antoine-castex commented on May 4, 2024

@antoine-castex did you get this resolved yet? I'm running into the same issue and double checked my work.

problem still here :(

from loaner.

antoine-castex avatar antoine-castex commented on May 4, 2024

I can see the cron job in error for the same reason

Forbidden (/base/alloc/tmpfs/dynamic_runtimes/python27g/3b44e98ed7fbb86b/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py:1552)
Traceback (most recent call last):
File "/base/alloc/tmpfs/dynamic_runtimes/python27g/3b44e98ed7fbb86b/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1535, in call
rv = self.handle_exception(request, response, e)
File "/base/alloc/tmpfs/dynamic_runtimes/python27g/3b44e98ed7fbb86b/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1529, in call
rv = self.router.dispatch(request, response)
File "/base/alloc/tmpfs/dynamic_runtimes/python27g/3b44e98ed7fbb86b/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1278, in default_dispatcher
return route.handler_adapter(request, response)
File "/base/alloc/tmpfs/dynamic_runtimes/python27g/3b44e98ed7fbb86b/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1102, in call
return handler.dispatch()
File "/base/alloc/tmpfs/dynamic_runtimes/python27g/3b44e98ed7fbb86b/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 572, in dispatch
return self.handle_exception(e, self.app.debug)
File "/base/alloc/tmpfs/dynamic_runtimes/python27g/3b44e98ed7fbb86b/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 570, in dispatch
return method(*args, **kwargs)
File "/base/data/home/apps/sgbl-ist-ve-grabngo/deploy-first.414093468639346751/loaner/web_app/backend/handlers/cron/sync_user_roles.py", line 31, in get
sync_users.sync_user_roles()
File "/base/data/home/apps/s
gbl-ist-ve-grabngo/deploy-first.414093468639346751/loaner/web_app/backend/lib/sync_users.py", line 36, in sync_user_roles
constants.SUPERADMINS_GROUP)
File "/base/data/home/apps/sgbl-ist-ve-grabngo/deploy-first.414093468639346751/loaner/web_app/backend/clients/directory.py", line 337, in get_all_users_in_group
response = self._users_in_group(group_email)
File "/base/data/home/apps/s
gbl-ist-ve-grabngo/deploy-first.414093468639346751/loaner/web_app/backend/clients/directory.py", line 379, in _users_in_group
raise DirectoryRPCError(err.resp.reason)
DirectoryRPCError: Forbidden

from loaner.

antoine-castex avatar antoine-castex commented on May 4, 2024

my grab n go gsuite account is owner the google group created

how can i have miss for permissions ?

from loaner.

gyoshi02 avatar gyoshi02 commented on May 4, 2024

Hello,
Is there any update here?
We are also stuck at this step. You can click on the other sections of the application, but seems like we are missing a step somewhere...

from loaner.

helfrichmichael avatar helfrichmichael commented on May 4, 2024

Sorry for the delay. Have you created a custom GSuite role to provide access to the Directory of GSuite? This is done with admin roles at the role account level.

https://support.google.com/a/answer/2406043?hl=en

Additionally, if you haven't yet, we recommend pulling from head as many bugs have been fixed since this issue was opened.

from loaner.

gyoshi02 avatar gyoshi02 commented on May 4, 2024

Hello,
The we used a service account called svc-loaner-role@ that we created. It does not have the super admin role, but it has elevated access.
Groups Admin
User Managment
Services Admin
A new Custom role that I created that gives the ability to create OUs and modify them.
I can send a screen shot if needed, but this user has the ability to create/delete, and take all actions against users.

What do you mean when you say pull from "head" ?
I'm using Alpha-0.7
git clone -b Alpha-(0.7) https://github.com/google/loaner.git

Also I noticed in the release notes:
"Known issues
You must manually create the GSuite Chrome organizational units as the app cannot yet create them."
I have created the OUs that will be needed, and even created the Prod, QA, and Dev.

Thanks,

from loaner.

helfrichmichael avatar helfrichmichael commented on May 4, 2024

For the missing permissions, you're likely missing access to the GSuite Directory within the Admin API privileges (https://admin.google.com/AdminHome#DomainSettings/notab=1&subtab=roles). I believe the permissions in the screenshot below are accurate. You could also try temporarily providing super admin to the role-account to see if that remediates the issue to confirm the root cause of the issue.

image

As for pulling from HEAD, that's by using "git clone https://github.com/google/loaner.git" without the branch specification (will pull the latest changes).

from loaner.

gyoshi02 avatar gyoshi02 commented on May 4, 2024

Hi,
Here's some screen shots of the Admin roles this account currently has, as well as the permissions of the custom admin role(This is just the OU part of the admin role, not the other permissions(This account is very close to being super admin)).
image
image
Here's the screen shot of the error that we are getting:
image

The OUs have been created exactly as the docs have explained. We have Grab n Go, then Prod, then Default and Guest Enabled.
Thanks,

from loaner.

helfrichmichael avatar helfrichmichael commented on May 4, 2024

@gyoshi02 can you confirm the OU structure that you have and what you configured for the OU settings in the constants.py and config_defaults.yaml file?

from loaner.

gyoshi02 avatar gyoshi02 commented on May 4, 2024

@ helfrichmichael
Here's the OU Structure that we have in place:
image
Here's the constants.py entries:
image
image
image

So my config_defaults.yaml is default settings, as I thought we didn't have to update this yet.
" (Optional) Customize GnG Settings " I must have assumed it wasn't required.
Should I update the OU setting here and try again?

from loaner.

gyoshi02 avatar gyoshi02 commented on May 4, 2024

So I updated the config_defaults.yaml to reflect some of the OU values and the technician email address. Does the Org unit prefix (if I'm using root) = /Grab n Go/Prod/ ?
image
Or is this value just "/" because we have created the /Grab n Go" OU right off of our Root within the domain?
Also still getting that error as before.
image

thanks,

from loaner.

helfrichmichael avatar helfrichmichael commented on May 4, 2024

@gyoshi02 what are the errors in the Log Viewer on Google Cloud Platform for this error? Can you confirm that this is targeting PROD and not DEV/QA?

from loaner.

gyoshi02 avatar gyoshi02 commented on May 4, 2024

@helfrichmichael

Here's a screen shot of something I found in the logs.
image

I'm guessing this means I need to create all of the OUs, for Dev and QA(even though I'm not using them yet).
I'll try to re-deploy again, now that I've create these new OUs.
Is there anything else that I should be looking for within these errors?
Thanks,

from loaner.

helfrichmichael avatar helfrichmichael commented on May 4, 2024

@gyoshi02 my major concern is that the app looks like it is targeting the dev version and not the prod version. This means the matcher isn't able to match the project ID to the instance you're running.

https://github.com/google/loaner/blob/master/loaner/web_app/constants.py#L75 is where we detect which version of the application you are running for the web app. Make sure that has the correct project name and that the settings are properly defined.

from loaner.

gyoshi02 avatar gyoshi02 commented on May 4, 2024

@helfrichmichael
I missed your updated, and went ahead and created all of the additional OUs.
We currently only have a project ID for Prod.
I assumed that since we were not using QA and DEV, we shouldn't need to create them.
I've got 4 green check marks now.
image

We can begin testing enrollments and other parts of this project.
Thanks for your assistance.

from loaner.

helfrichmichael avatar helfrichmichael commented on May 4, 2024

I'm going to close this as we've addressed the culprit in this thread. If this reappears, please re-open.

from loaner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.