Userbase

Docs : SDK : modifyDatabasePermissions

modifyDatabasePermissions lets a user modify or revoke another user's access permissions to a database.

    
      userbase.modifyDatabasePermissions({
        databaseName: 'example-database-name',
        username: 'alice',
        revoke: true
      }).then(() => {
        // Alice no longer has access to the database
      }).catch((e) => console.error(e))
    
  

Parameters

Errors