Solved

IAM Sessions (Python SDK)

  • 6 March 2024
  • 2 replies
  • 38 views

Badge +2

I need some help with the SDK (Python). I'm trying to list active sessions in Cognite using the following resource:

 

client.iam.sessions.list(status="ACTIVE"

 

However, I notice that even my client_id doesn't return in the listing (I'm logged in via browser with my user).

 

Am I misunderstanding this feature?

icon

Best answer by Dilini Fernando 27 March 2024, 11:20

View original

2 replies

Userlevel 2
Badge

@Gabriel Neves Maciel  please refer to the documentation here. The client-id will be only returned if the session was created using client credentials. In your case you have used user credentials.

 

Userlevel 4
Badge +2

Hi @Gabriel Neves Maciel ,

I hope the information above was helpful! Let me know if there's anything else I can do for you.

Reply