update api for users and media archive

SD-279 + SD-291