# Suspended, inactive and blocked user with API key can still create topics

**URL:** <https://meta.discourse.org/t/suspended-inactive-and-blocked-user-with-api-key-can-still-create-topics/32033>\
**Category:** Bug\
**Tags:** rest-api\
**Created:** [August 12, 2015, 6:07pm UTC](https://meta.discourse.org/t/suspended-inactive-and-blocked-user-with-api-key-can-still-create-topics/32033 "2015-08-12T18:07:01Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![gtanczyk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gtanczyk/32/44608_2.png) [@gtanczyk](https://meta.discourse.org/u/gtanczyk)\
**Post date:** [August 12, 2015, 6:07pm UTC](https://meta.discourse.org/t/suspended-inactive-and-blocked-user-with-api-key-can-still-create-topics/32033/1 "2015-08-12T18:07:01Z")

</div>

User is configured like this:

 ![](https://global.discourse-cdn.com/meta/original/3X/f/6/f6b7b2491beaf4f78ce0f758c68236df18aed4a7.png) 

Inactive and suspended, yet I am still able to create topic with following code:

```
@data = {
  skip_validations: true,
  auto_track: false,
  title: "test",
  raw: "test"
}
resp = client.create_topic(@data)

```

Is this intended behavior? On the other hand category security settings are respected.

What I am trying to achieve: I have open source project with simple ruby script that downloads latest topics from some particular discourse instance and converts that to a static web site.  
I would like to commit this API key for read only user, so everyone can clone this repo and start their work.

Is there any other way to achieve this(read-only user with api access)?

Thanks

Edit: It also doesn’t work when user is blocked

---

_[View the full topic](https://meta.discourse.org/t/suspended-inactive-and-blocked-user-with-api-key-can-still-create-topics/32033)._
