-
Notifications
You must be signed in to change notification settings - Fork 632
Multi Tenancy Support
Ant Media supports different user roles. You can, for example, create an admin user to virtually do everything to read-only users, who only can view the dashboard and not do something harmful like removing an application. These permission models are both in API and Ant Media administration tools.
AMS dashboard users can only view applications and sections of the dashboard they have been given access to. There are 3 types of user access in the AMS dashboard:
- Admin can do anything in its scope, e.g can CRUD anything and access all web panel services.
- User can do anything in the dashboard for particular applications granted. He cannot see or modify other applications.
- Read-only user can read anything in the dashboard for applications granted. This user cannot access web panel services, create an application, or start a broadcast.
Just need to navigate Settings text on the left menu. After that click Users section and click New User button. Just fill the blanks according to your use case.
After login with your new User, you will see likely as below:
Please take a look at the answer here to learn how to access web panel REST methods programmatically
Web panel has the following REST method to create user for applications
@POST
@Path("/users")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
It means that you can call the following method to create a user with curl.
curl -X POST -H "Content-Type: application/json" -d '{"email": "test", "password": "testtest", "scope": "LiveApp", "userType": "ADMIN"}' "https://{YOUR_SERVER_ADDRESS}:5443/rest/v2/users"
Web panel has the following REST method to edit user for applications
@PUT
@Path("/users")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
It means that you can call the following method to edit a user with curl.
curl -X PUT -H "Content-Type: application/json" -d '{"email": "test", "password": "testtest", "scope": "system", "userType": "USER"}' "https://{YOUR_SERVER_ADDRESS}:5443/rest/v2/users"
Web panel has the following REST method to create user for applications
@DELETE
@Path("/users/{username}")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
It means that you can call the following method to remove a user with curl.
curl -X DELETE -H "Content-Type: application/json" "https://{YOUR_SERVER_ADDRESS}:5443/rest/v2/users/{username}"
- Introduction
- Quick Start
- Installation
- Publishing Live Streams
- Playing Live Streams
- Conference Call
- Peer to Peer Call
- Adaptive Bitrate(Multi-Bitrate) Streaming
- Data Channel
- Video on Demand Streaming
- Simulcasting to Social Media Channels
- Clustering & Scaling
- Monitor Ant Media Servers with Apache Kafka and Grafana
- WebRTC SDKs
- Security
- Integration with your Project
- Advanced
- WebRTC Load Testing
- TURN Servers
- AWS Wavelength Deployment
- Multi-Tenancy Support
- Monitor Ant Media Server with Datadog
- Clustering in Alibaba
- Playlist
- Kubernetes
- Time based One Time Password
- Kubernetes Autoscaling
- Kubernetes Ingress
- How to Install Ant Media Server on EKS
- Release Tests
- Spaceport Volumetric Video
- WebRTC Viewers Info
- Webhook Authentication for Publishing Streams
- Recording Streams
- How to Update Ant Media Server with Cloudformation
- How to Install Ant Media Server on GKE
- Ant Media Server on Docker Swarm
- Developer Quick Start
- Recording HLS, MP4 and how to recover
- Re-streaming update
- Git Branching
- UML Diagrams