GithubHelp home page GithubHelp logo

Comments (8)

BaiJiangJie avatar BaiJiangJie commented on June 14, 2024

那就是没有这个组织的权限吧。

from jumpserver.

BaiJiangJie avatar BaiJiangJie commented on June 14, 2024

在页面上直接访问一下(url 参数重直接写 oid 参数):

http://host/api/v1/users/users?oid={ORG_ID}

from jumpserver.

guoheng888 avatar guoheng888 commented on June 14, 2024

在页面上直接访问一下(url参数重直接写oid参数):

http://host/api/v1/users/users?oid={ORG_ID}

页面是可以的,用户写脚本发现curl命令获取不到。

from jumpserver.

BaiJiangJie avatar BaiJiangJie commented on June 14, 2024

那 curl 的时候也写到 url 参数中,不要写到 Header 中试试。

from jumpserver.

guoheng888 avatar guoheng888 commented on June 14, 2024

那curl的时候也写到url参数中,不要写到Header中试试。

也是没权限
image

from jumpserver.

BaiJiangJie avatar BaiJiangJie commented on June 14, 2024

Bearer 是怎么生成的?

from jumpserver.

BaiJiangJie avatar BaiJiangJie commented on June 14, 2024
image

确认了,两种方式都可以。

from jumpserver.

guoheng888 avatar guoheng888 commented on June 14, 2024
image 确认了,两种方式都可以。

Bearer 是通过临时token的方式,新建一个组织的时候api获取用户列表test成功过,在新组织下面漠视创建了资产和资产授权时就复现了没有执行权限的情况。我再多测下看看。感谢大佬。

from jumpserver.

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.