added user api and trigger