mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 20:38:00 +00:00
6fa62ccd0a
* feat: user login names * fix: user login names * fix: generate login name
15 lines
284 B
Go
15 lines
284 B
Go
package grpc
|
|
|
|
import (
|
|
"context"
|
|
"github.com/golang/protobuf/ptypes/empty"
|
|
)
|
|
|
|
func (s *Server) GetIam(ctx context.Context, _ *empty.Empty) (*Iam, error) {
|
|
iam, err := s.iam.IamByID(ctx, s.systemDefaults.IamID)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return iamFromModel(iam), nil
|
|
}
|